Skip to content

Commit 71758f8

Browse files
Change build format
1 parent 9710355 commit 71758f8

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

conda-recipe/bld.bat

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ set "DPPL_SYCL_INTERFACE_LIBDIR=dpctl"
4545
set "DPPL_SYCL_INTERFACE_INCLDIR=dpctl\include"
4646

4747
"%PYTHON%" setup.py clean --all
48-
"%PYTHON%" setup.py build install bdist_wheel
48+
"%PYTHON%" setup.py build install
4949
IF %ERRORLEVEL% NEQ 0 exit 1
50-
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
51-
if errorlevel 1 exit 1
50+
51+
rem Build wheel package
52+
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
53+
%PYTHON% setup.py bdist_wheel
54+
if errorlevel 1 exit 1
55+
copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
56+
if errorlevel 1 exit 1
57+
)

conda-recipe/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ export DPPL_SYCL_INTERFACE_INCLDIR=dpctl/include
5555
export CFLAGS="-fPIC -O3 ${CFLAGS}"
5656
export LDFLAGS="-L ${OpenCL_LIBDIR} ${LDFLAGS}"
5757
${PYTHON} setup.py clean --all
58-
${PYTHON} setup.py build install bdist_wheel -p manylinux1_x86_64
58+
${PYTHON} setup.py build install
59+
60+
# Build wheel package
5961
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
62+
$PYTHON setup.py bdist_wheel -p manylinux1_x86_64
6063
cp dist/dpctl*.whl ${WHEELS_OUTPUT_FOLDER}
6164
fi

0 commit comments

Comments
 (0)