Skip to content

Commit 397dba7

Browse files
task: numpy-base toggle for meta.yaml (#181)
1 parent 0faa01e commit 397dba7

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010

1111
### Changed
1212
* Import ufuncs explicitly in `__init__.py` and add `__all__` to module [gh-177](https://github.com/IntelPython/mkl_umath/pull/177)
13+
* Made conda recipe dependency on numpy configurable through `USE_NUMPY_BASE` environment variable [gh-181](https://github.com/IntelPython/mkl_umath/pull/181)
1314

1415
### Fixed
1516
* Build with ICX compiler from 2026.0 release [gh-155](https://github.com/IntelPython/mkl_umath/pull/155)

conda-recipe-cf/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set version = "0.4.0dev2" %}
1+
{% set version = "0.4.0dev3" %}
22
{% set buildnumber = 0 %}
33

44
package:

conda-recipe/meta.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Intel numpy-base is still needed for internal wheels CI, so we control its use with this optional toggle
2+
{% set use_numpy_base = environ.get('USE_NUMPY_BASE', 'true').lower() == 'true' %}
3+
14
package:
25
name: mkl_umath
36
version: {{ GIT_DESCRIBE_TAG }}
@@ -28,14 +31,22 @@ requirements:
2831
- python
2932
- python-gil # [py>=314]
3033
- mkl-devel
34+
{% if use_numpy_base %}
3135
- numpy-base
36+
{% else %}
37+
- numpy
38+
{% endif %}
3239
- wheel >=0.41.3
3340
run:
3441
- python
3542
- python-gil # [py>=314]
3643
- mkl-service
3744
- {{ pin_compatible('intel-cmplr-lib-rt') }}
38-
- {{ pin_compatible('numpy-base') }}
45+
{% if use_numpy_base %}
46+
- numpy-base
47+
{% else %}
48+
- numpy >=1.26.4
49+
{% endif %}
3950

4051
test:
4152
requires:

mkl_umath/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.0dev2"
1+
__version__ = "0.4.0dev3"

0 commit comments

Comments
 (0)