Skip to content

Commit 7524555

Browse files
committed
Use ninja
1 parent 600a41f commit 7524555

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

conda-recipe/bld.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
@REM used BUILD_PREFIX as compiler installed in build section of meta.yml
44
set "PATH=%BUILD_PREFIX%\Library\bin-llvm;%PATH%"
55

6-
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt
6+
set "SKBUILD_ARGS=-G Ninja --"
7+
set "SKBUILD_ARGS=%SKBUILD_ARGS% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON"
8+
9+
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt %SKBUILD_ARGS%
710

811
rem Build wheel package
912
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
10-
%PYTHON% setup.py bdist_wheel --build-number %GIT_DESCRIBE_NUMBER%
13+
%PYTHON% setup.py bdist_wheel --build-number %GIT_DESCRIBE_NUMBER% %SKBUILD_ARGS%
1114
if errorlevel 1 exit 1
1215
copy dist\numba_dpex*.whl %WHEELS_OUTPUT_FOLDER%
1316
if errorlevel 1 exit 1

conda-recipe/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ set -euxo pipefail
66
# starting from dpcpp_impl_linux-64=2022.0.0=intel_3610
77
export PATH=$CONDA_PREFIX/bin-llvm:$PATH
88

9-
${PYTHON} setup.py install --single-version-externally-managed --record=record.txt
9+
SKBUILD_ARGS=(-G Ninja -- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON)
10+
11+
${PYTHON} setup.py install --single-version-externally-managed --record=record.txt "${SKBUILD_ARGS[@]}"
1012

1113
# Build wheel package
1214
WHEELS_BUILD_ARGS=(-p manylinux2014_x86_64 --build-number "$GIT_DESCRIBE_NUMBER")
1315
if [[ -v WHEELS_OUTPUT_FOLDER ]]; then
14-
$PYTHON setup.py bdist_wheel "${WHEELS_BUILD_ARGS[@]}"
16+
$PYTHON setup.py bdist_wheel "${WHEELS_BUILD_ARGS[@]}" "${SKBUILD_ARGS[@]}"
1517
cp dist/numba_dpex*.whl "${WHEELS_OUTPUT_FOLDER[@]}"
1618
fi

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ requirements:
1818
- python
1919
- setuptools >=63.*
2020
- scikit-build >=0.15*
21+
- ninja # [not win]
2122
- cmake >=3.26*
2223
- numba >=0.57*
2324
- dpctl >=0.14*

0 commit comments

Comments
 (0)