Skip to content

Commit 2894c98

Browse files
committed
Use pip install in conda-build recipes
This is recommended by conda-forge; see [1]. It also tests "pip installability". [1] http://conda-forge.org/docs/maintainer/adding_pkgs.html#use-pip
1 parent f5c35e3 commit 2894c98

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

conda-recipe-openblas/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if EXIST "%PREFIX%\Scripts\f2py.exe" (
1616
set F2PY=%PREFIX%\Scripts\f2py.bat
1717
)
1818

19-
"%PYTHON%" setup.py install
19+
"%PYTHON%" -m pip install . --no-deps --ignore-installed -vv
2020

2121
if errorlevel 1 exit 1
2222

conda-recipe-openblas/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ export LAPACK_ROOT=${PREFIX}
1111
rm -rf _skbuild
1212

1313
# do the build
14-
$PYTHON setup.py install
14+
$PYTHON -m pip install . --no-deps --ignore-installed -vv
15+

conda-recipe-openblas/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ build:
1010
string: py{{ environ.get('PY_VER').replace('.', '') }}{{ environ.get('GIT_DESCRIBE_HASH', '') }}_obl_{{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
1111

1212
requirements:
13+
# TODO: pip possibly required in only *one* of build and host, but which?
1314
build:
1415
- python {{ PY_VER }}
1516
- numpy
@@ -21,6 +22,7 @@ requirements:
2122

2223
host:
2324
- python {{ PY_VER }}
25+
- pip
2426
- flang # [win]
2527
- numpy
2628
- openblas >=0.3.0

conda-recipe/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if EXIST "%PREFIX%\Scripts\f2py.exe" (
1616
set F2PY=%PREFIX%\Scripts\f2py.bat
1717
)
1818

19-
"%PYTHON%" setup.py install
19+
"%PYTHON%" -m pip install . --no-deps --ignore-installed -vv
2020

2121
if errorlevel 1 exit 1
2222

conda-recipe/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ rm -rf _skbuild
1212
env
1313

1414
# do the build
15-
$PYTHON setup.py install
15+
$PYTHON -m pip install . --no-deps --ignore-installed -vv

conda-recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ requirements:
1414
# conda-supplied clang and library linking see e.g.
1515
# https://github.com/conda-forge/mpi-feedstock issue #4
1616
# conda-forge might have the configuration in place for clang build and link?
17+
# TODO: pip possibly required in only *one* of build and host, but which?
1718
build:
1819
- python {{PY_VER}}
1920
- numpy
@@ -24,6 +25,7 @@ requirements:
2425

2526
host:
2627
- python {{ PY_VER }}
28+
- pip
2729
- flang # [win]
2830
- numpy
2931
- mkl

0 commit comments

Comments
 (0)