Skip to content

Commit 7ea4af2

Browse files
committed
use pip install in build scripts
aligns more closely with conda-forge feedstock
1 parent 4555e6a commit 7ea4af2

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

conda-recipe-cf/bld.bat

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,2 @@
1-
@rem Remember to source the compiler
2-
3-
set MKLROOT=%CONDA_PREFIX%
4-
5-
rem Build wheel package
6-
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
7-
%PYTHON% -m pip wheel --no-build-isolation --no-deps .
8-
if errorlevel 1 exit 1
9-
copy mkl_random*.whl %WHEELS_OUTPUT_FOLDER%
10-
if errorlevel 1 exit 1
11-
) ELSE (
12-
rem Build conda package
13-
%PYTHON% -m pip install --no-build-isolation --no-deps .
14-
if errorlevel 1 exit 1
15-
)
1+
%PYTHON% -m pip install --no-build-isolation --no-deps .
2+
if errorlevel 1 exit 1

conda-recipe-cf/build.sh

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
#!/bin/bash -x
22

3-
export CFLAGS="-I$PREFIX/include $CFLAGS"
4-
export LDFLAGS="-Wl,-rpath,\$ORIGIN/../.. -Wl,-rpath,\$ORIGIN/../../.. -L${PREFIX}/lib ${LDFLAGS}"
5-
export MKLROOT=$CONDA_PREFIX
6-
7-
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
8-
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
9-
10-
# Build wheel package
11-
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
12-
$PYTHON -m pip wheel --no-build-isolation --no-deps .
13-
${PYTHON} -m wheel tags --remove --platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" mkl_random*.whl
14-
cp mkl_random*.whl "${WHEELS_OUTPUT_FOLDER}"
15-
else
16-
# Build conda package
17-
$PYTHON -m pip install --no-build-isolation --no-deps .
18-
fi
3+
$PYTHON -m pip install --no-build-isolation --no-deps .

0 commit comments

Comments
 (0)