File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,16 @@ set "LIB=%BUILD_PREFIX%\Library\lib;%BUILD_PREFIX%\compiler\lib;%LIB%"
44set " INCLUDE = %BUILD_PREFIX% \include;%INCLUDE% "
55
66" %PYTHON% " setup.py clean --all
7- " %PYTHON% " setup.py install --sycl-compiler-prefix=%BUILD_PREFIX% \Library
8- if errorlevel 1 exit 1
7+ set " INSTALL_CMD = install --sycl-compiler-prefix=%BUILD_PREFIX% \Library"
98
10- rem Build wheel package
119if NOT " %WHEELS_OUTPUT_FOLDER% " == " " (
12- %PYTHON% setup.py bdist_wheel
10+ rem Install and assemble wheel package from the build bits
11+ " %PYTHON% " setup.py %INSTALL_CMD% bdist_wheel
1312 if errorlevel 1 exit 1
1413 copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
1514 if errorlevel 1 exit 1
15+ ) ELSE (
16+ rem Only install
17+ " %PYTHON% " setup.py %INSTALL_CMD%
18+ if errorlevel 1 exit 1
1619)
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33${PYTHON} setup.py clean --all
4- ${PYTHON} setup.py install --sycl-compiler-prefix=$CONDA_PREFIX
4+ INSTALL_CMD= " install --sycl-compiler-prefix=$CONDA_PREFIX "
55
6- # Build wheel package
7- if [ " $CONDA_PY " == " 36" ]; then
8- WHEELS_BUILD_ARGS=" -p manylinux1_x86_64"
9- else
10- WHEELS_BUILD_ARGS=" -p manylinux2014_x86_64"
11- fi
126if [ -n " ${WHEELS_OUTPUT_FOLDER} " ]; then
13- # We need dpcpp to compile dpctl_sycl_interface
14- if [ ! -z " ${ONEAPI_ROOT} " ]; then
15- # Suppress error b/c it could fail on Ubuntu 18.04
16- source ${ONEAPI_ROOT} /compiler/latest/env/vars.sh || true
7+ # Install packages and assemble wheel package from built bits
8+ if [ " $CONDA_PY " == " 36" ]; then
9+ WHEELS_BUILD_ARGS=" -p manylinux1_x86_64"
1710 else
18- echo " DPCPP is needed to build DPCTL. Abort!"
19- exit 1
11+ WHEELS_BUILD_ARGS=" -p manylinux2014_x86_64"
2012 fi
21- $PYTHON setup.py bdist_wheel ${WHEELS_BUILD_ARGS}
13+ ${ PYTHON} setup.py ${INSTALL_CMD} bdist_wheel ${WHEELS_BUILD_ARGS}
2214 cp dist/dpctl* .whl ${WHEELS_OUTPUT_FOLDER}
15+ else
16+ # Perform regular install
17+ ${PYTHON} setup.py ${INSTALL_CMD}
2318fi
You can’t perform that action at this time.
0 commit comments