Skip to content

Commit c488eb1

Browse files
committed
use conda-forge feedstock build scripts in place of new ones
these will remain in place until build system is updated
1 parent e1ad0b9 commit c488eb1

2 files changed

Lines changed: 6 additions & 63 deletions

File tree

conda-recipe-cf/bld.bat

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
echo on
2-
rem set CFLAGS=-I%PREFIX%\Library\include %CFLAGS%
3-
rem set LDFLAGS=/LIBPATH:%PREFIX% %LDFLAGS%
1+
@rem Remember to activate Intel Compiler, or remove these two lines to use Microsoft Visual Studio compiler
42

5-
set MKLROOT=%CONDA_PREFIX%
6-
7-
"%PYTHON%" setup.py clean --all
8-
9-
:: Make CMake verbose
10-
set "VERBOSE=1"
11-
12-
:: -wnx flags mean: --wheel --no-isolation --skip-dependency-check
13-
%PYTHON% -m build -w -n -x
14-
if %ERRORLEVEL% neq 0 exit 1
15-
16-
:: wheel file was renamed
17-
for /f %%f in ('dir /b /S .\dist') do (
18-
%PYTHON% -m pip install %%f ^
19-
--no-build-isolation ^
20-
--no-deps ^
21-
--only-binary :all: ^
22-
--no-index ^
23-
--prefix %PREFIX% ^
24-
-vv
25-
if %ERRORLEVEL% neq 0 exit 1
26-
)
27-
28-
:: Copy wheel package
29-
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
30-
copy dist\mkl_service*.whl %WHEELS_OUTPUT_FOLDER%
31-
if %ERRORLEVEL% neq 0 exit 1
32-
)
3+
set MKLROOT=%PREFIX%
4+
%PYTHON% setup.py build --force install --old-and-unmanageable
5+
if errorlevel 1 exit 1

conda-recipe-cf/build.sh

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,2 @@
1-
#!/bin/bash
2-
set -ex
3-
4-
export MKLROOT=$CONDA_PREFIX
5-
6-
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \
7-
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
8-
9-
${PYTHON} setup.py clean --all
10-
11-
# Make CMake verbose
12-
export VERBOSE=1
13-
14-
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check
15-
${PYTHON} -m build -w -n -x
16-
17-
${PYTHON} -m wheel tags --remove \
18-
--platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" \
19-
dist/mkl_service*.whl
20-
21-
${PYTHON} -m pip install dist/mkl_service*.whl \
22-
--no-build-isolation \
23-
--no-deps \
24-
--only-binary :all: \
25-
--no-index \
26-
--prefix "${PREFIX}" \
27-
-vv
28-
29-
# Copy wheel package
30-
if [[ -d "${WHEELS_OUTPUT_FOLDER}" ]]; then
31-
cp dist/mkl_service*.whl "${WHEELS_OUTPUT_FOLDER[@]}"
32-
fi
1+
#!/bin/bash -x
2+
MKLROOT=$PREFIX $PYTHON setup.py build --force install --old-and-unmanageable

0 commit comments

Comments
 (0)