Skip to content

Commit 6c76296

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

2 files changed

Lines changed: 5 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

0 commit comments

Comments
 (0)