File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 52
52
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
53
53
echo "CONDA_PREFFIX is '${CONDA_PREFIX}'"
54
54
export MKLROOT=${CONDA_PREFIX}
55
- CC=icx pip install . --no-build-isolation --no-deps --verbose
55
+ pip install . --no-build-isolation --no-deps --verbose
56
56
pip install --no-cache-dir pytest
57
57
pip list
58
58
# mkl_umath cannot be installed in editable mode, we need
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
5
5
" %PYTHON% " setup.py clean --all
6
6
set " SKBUILD_ARGS = -G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
7
7
8
+ set " CC = icx"
9
+
8
10
FOR %%V IN (14.0.0 14 15.0.0 15 16.0.0 16 17.0.0 17) DO @ (
9
11
REM set DIR_HINT if directory exists
10
12
IF EXIST " %BUILD_PREFIX% \Library\lib\clang\%%V \" (
@@ -20,6 +22,6 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
20
22
if errorlevel 1 exit 1
21
23
) ELSE (
22
24
rem Only install
23
- " %PYTHON% " setup.py install % SKBUILD_ARGS%
25
+ " %PYTHON% " -m pip install . --no-build-isolation --no-deps --config-settings=cmake.args= " ${ SKBUILD_ARGS} "
24
26
if errorlevel 1 exit 1
25
27
)
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export ICXCFG="$(pwd)/icx_for_conda.cfg"
8
8
read -r GLIBC_MAJOR GLIBC_MINOR <<< " $(conda list '^sysroot_linux-64$' \
9
9
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
10
10
11
+ export CC=icx
12
+
11
13
export CMAKE_GENERATOR=" Ninja"
12
14
SKBUILD_ARGS=" -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
13
15
@@ -18,5 +20,5 @@ if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
18
20
cp dist/mkl_umath* .whl ${WHEELS_OUTPUT_FOLDER}
19
21
else
20
22
# Perform regular install
21
- ${PYTHON} setup.py install ${SKBUILD_ARGS}
23
+ ${PYTHON} -m pip install . --no-build-isolation --no-deps --config-settings=cmake.args= " ${SKBUILD_ARGS} "
22
24
fi
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ set "INCLUDE=%BUILD_PREFIX%\include;%INCLUDE%"
5
5
" %PYTHON% " setup.py clean --all
6
6
set " SKBUILD_ARGS = -G Ninja -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
7
7
8
+ set " CC = icx"
9
+
8
10
if NOT " %WHEELS_OUTPUT_FOLDER% " == " " (
9
11
rem Install and assemble wheel package from the build bits
10
12
" %PYTHON% " setup.py install bdist_wheel %SKBUILD_ARGS%
@@ -13,6 +15,6 @@ if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
13
15
if errorlevel 1 exit 1
14
16
) ELSE (
15
17
rem Only install
16
- " %PYTHON% " setup.py install % SKBUILD_ARGS%
18
+ " %PYTHON% " -m pip install . --no-build-isolation --no-deps --config-settings=cmake.args= " ${ SKBUILD_ARGS} "
17
19
if errorlevel 1 exit 1
18
20
)
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export ICXCFG="$(pwd)/icx_for_conda.cfg"
8
8
read -r GLIBC_MAJOR GLIBC_MINOR <<< " $(conda list '^sysroot_linux-64$' \
9
9
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')"
10
10
11
+ export CC=icx
12
+
11
13
export CMAKE_GENERATOR=" Ninja"
12
14
SKBUILD_ARGS=" -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
13
15
@@ -18,5 +20,5 @@ if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
18
20
cp dist/mkl_umath* .whl ${WHEELS_OUTPUT_FOLDER}
19
21
else
20
22
# Perform regular install
21
- ${PYTHON} setup.py install ${SKBUILD_ARGS}
23
+ ${PYTHON} -m pip install . --no-build-isolation --no-deps --config-settings=cmake.args= " ${SKBUILD_ARGS} "
22
24
fi
You can’t perform that action at this time.
0 commit comments