Skip to content

Commit 4b6bf6d

Browse files
Abandon nose, use pytest to enable building for Python 3.12
1 parent 57887c6 commit 4b6bf6d

File tree

4 files changed

+1127
-1028
lines changed

4 files changed

+1127
-1028
lines changed

conda-recipe/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash -x
22

33
export CFLAGS="-I$PREFIX/include $CFLAGS"
4-
MKLROOT=$CONDA_PREFIX $PYTHON setup.py install --old-and-unmanageable
4+
export MKLROOT=$CONDA_PREFIX
5+
$PYTHON -m pip install . --no-build-isolation --no-deps

conda-recipe/meta.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ build:
1313
ignore_run_exports:
1414
- blas
1515

16-
1716
requirements:
1817
build:
1918
- {{ compiler('c') }}
@@ -24,16 +23,17 @@ requirements:
2423
- mkl-devel
2524
- cython
2625
- numpy-base
26+
- pip
2727
run:
2828
- python
29-
- {{ pin_compatible('mkl', min_pin="x.x", max_pin="x.x") }}
30-
- {{ pin_compatible('numpy') }}
29+
- {{ pin_compatible('mkl', min_pin="x.x", max_pin="x") }}
30+
- {{ pin_compatible('numpy', min_pin="x.x", max_pin="x") }}
3131

3232
test:
3333
commands:
34-
- nosetests -v mkl_random
34+
- pytest --pyargs mkl_random
3535
requires:
36-
- nose
36+
- pytest
3737
- mkl-service
3838
- numpy
3939
imports:

0 commit comments

Comments
 (0)