Skip to content

Commit 1f7006a

Browse files
committed
update conda-recipe build scripts
1 parent c35b977 commit 1f7006a

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

conda-recipe/bld.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ echo on
22
rem set CFLAGS=-I%PREFIX%\Library\include %CFLAGS%
33
rem set LDFLAGS=/LIBPATH:%PREFIX% %LDFLAGS%
44

5-
"%PYTHON%" setup.py clean --all
6-
7-
:: Make CMake verbose
8-
set "VERBOSE=1"
5+
set "CC=icx"
96

107
:: -wnx flags mean: --wheel --no-isolation --skip-dependency-check
118
%PYTHON% -m build -w -n -x

conda-recipe/build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ set -ex
44
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
55
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
66

7-
${PYTHON} setup.py clean --all
7+
if [ -d "build" ]; then
8+
rm -rf build
9+
fi
810

9-
# Make CMake verbose
10-
export VERBOSE=1
11+
export CC=icx
1112

1213
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
1314
${PYTHON} -m build -w -n -x

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ requirements:
2424
- ninja
2525
- python
2626
- python-gil # [py>=314]
27+
- python-build
2728
- pip >=25.0
2829
- mkl-devel
2930
- cython

0 commit comments

Comments
 (0)