Skip to content

Commit 3fb7aff

Browse files
committed
update conda-recipe build scripts
1 parent c311b0f commit 3fb7aff

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

conda-recipe/bld.bat

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ 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"
9-
105
:: -wnx flags mean: --wheel --no-isolation --skip-dependency-check
116
%PYTHON% -m build -w -n -x
127
if %ERRORLEVEL% neq 0 exit 1

conda-recipe/build.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ 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
8-
9-
# Make CMake verbose
10-
export VERBOSE=1
7+
if [ -d "build" ]; then
8+
rm -rf build
9+
fi
1110

1211
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
1312
${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)