Skip to content

Commit 12622fa

Browse files
Use python -m pip to install package in conda scripts
1 parent b13c2ba commit 12622fa

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

conda-recipe/bld.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@rem Remember to activate Intel Compiler, or remoe these two lines to ise Microsoft Visual Studio compiler
2-
31
set MKLROOT=%PREFIX%
4-
%PYTHON% setup.py build --force install --old-and-unmanageable
2+
%PYTHON% -m pip install --no-build-isolation --no-deps .
53
if errorlevel 1 exit 1

conda-recipe/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash -x
22

3-
# make sure that compiler has been sourced, if necessary
4-
53
if [ `uname` == Darwin ]; then
64
export MACOSX_DEPLOYMENT_TARGET=10.9
75
fi
86

9-
MKLROOT=$PREFIX CFLAGS="-I$PREFIX/include $CFLAGS" $PYTHON setup.py build --force install --old-and-unmanageable
7+
export MKLROOT=$PREFIX
8+
export CFLAGS="-I$PREFIX/include $CFLAGS"
9+
$PYTHON -m pip install --no-build-isolation --no-deps .
10+

0 commit comments

Comments
 (0)