BUG fix recipe for conda-smithy
{% set version = "2019.5" %}
{% set buildnum = "281" %}
+{% set my_channel_targets = channel_targets if channel_targets is defined else ['conda-forge', 'defaults'] %}
+
# use this if our build script changes and we need to increment beyond intel's version
# {% set dstbuildnum='4' %}
{% set openmp_version = version %}
@@ -27,7 +29,7 @@ source:
md5: 826aaeb29f364c5dca0b626a2dc49de5 # [win]
md5: e845fee2055ed6e9182ef582afb16a60 # [osx]
md5: 57d02e642e3d263aa19ba049d928ab1c # [linux]
- {% if 'conda-forge' not in channel_targets %}
+ {% if 'conda-forge' not in my_channel_targets %}
- url: https://anaconda.org/intel/intel-openmp/{{ openmp_version }}/download/{{ target_platform }}/intel-openmp-{{ openmp_version }}-intel_{{ openmp_buildnum }}.tar.bz2
folder: intel-openmp
md5: 52e1123b2aab69cc7a715b0e7d3d8967 # [win]
@@ -92,7 +94,7 @@ outputs:
script: repack.sh # [unix]
script: repack.bat # [win]
requirements:
- {% if 'conda-forge' not in channel_targets %}
+ {% if 'conda-forge' not in my_channel_targets %}
host:
- intel-openmp
run:
@@ -134,7 +136,7 @@ outputs:
commands:
- ls -A $PREFIX/include/* # [unix]
- {% if 'conda-forge' not in channel_targets %}
+ {% if 'conda-forge' not in my_channel_targets %}
- name: intel-openmp
script: repack.sh # [unix]
script: repack.bat # [win]
@@ -179,14 +181,14 @@ outputs:
# newer than build version
run_exports:
- {{ pin_subpackage('mkl') }}
- {% if 'conda-forge' not in channel_targets %}
+ {% if 'conda-forge' not in my_channel_targets %}
- {{ pin_subpackage('blas', exact=True) }}
{% endif %}
requirements:
run:
- {{ pin_subpackage('mkl', exact=True) }}
- {{ pin_subpackage('mkl-include', exact=True) }}
- {% if 'conda-forge' not in channel_targets %}
+ {% if 'conda-forge' not in my_channel_targets %}
- blas * mkl
{% endif %}
about:
