diff --git a/conda-recipe/bld.bat b/conda-recipe/bld.bat index 8926930b24..8d105e1b94 100644 --- a/conda-recipe/bld.bat +++ b/conda-recipe/bld.bat @@ -3,11 +3,14 @@ @REM used BUILD_PREFIX as compiler installed in build section of meta.yml set "PATH=%BUILD_PREFIX%\Library\bin-llvm;%PATH%" -%PYTHON% setup.py install --single-version-externally-managed --record=record.txt +set "SKBUILD_ARGS=-G Ninja --" +set "SKBUILD_ARGS=%SKBUILD_ARGS% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" + +%PYTHON% setup.py install --single-version-externally-managed --record=record.txt %SKBUILD_ARGS% rem Build wheel package if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( - %PYTHON% setup.py bdist_wheel + %PYTHON% setup.py bdist_wheel %SKBUILD_ARGS% if errorlevel 1 exit 1 copy dist\numba_dpex*.whl %WHEELS_OUTPUT_FOLDER% if errorlevel 1 exit 1 diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 98721196f9..dfb2e53c16 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -6,7 +6,9 @@ set -euxo pipefail # starting from dpcpp_impl_linux-64=2022.0.0=intel_3610 export PATH=$CONDA_PREFIX/bin-llvm:$PATH -${PYTHON} setup.py install --single-version-externally-managed --record=record.txt +SKBUILD_ARGS="-G Ninja -- -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" + +${PYTHON} setup.py install --single-version-externally-managed --record=record.txt ${SKBUILD_ARGS} # Build wheel package if [ "$CONDA_PY" == "36" ]; then @@ -15,6 +17,6 @@ else WHEELS_BUILD_ARGS=(-p manylinux2014_x86_64) fi if [[ -v WHEELS_OUTPUT_FOLDER ]]; then - $PYTHON setup.py bdist_wheel "${WHEELS_BUILD_ARGS[@]}" + $PYTHON setup.py bdist_wheel "${WHEELS_BUILD_ARGS[@]}" ${SKBUILD_ARGS} cp dist/numba_dpex*.whl "${WHEELS_OUTPUT_FOLDER[@]}" fi diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index cc826d31b8..a02dfd36ca 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -18,6 +18,9 @@ requirements: - python - setuptools >=63.* - scikit-build >=0.15* + - ninja # [not win] + - cython + - pybind11 - cmake >=3.26* - numba >=0.57* - dpctl >=0.14*