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%"
4
4
set " INCLUDE = %BUILD_PREFIX% \include;%INCLUDE% "
5
5
6
6
" %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"
9
8
10
- rem Build wheel package
11
9
if 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
13
12
if errorlevel 1 exit 1
14
13
copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
15
14
if errorlevel 1 exit 1
15
+ ) ELSE (
16
+ rem Only install
17
+ " %PYTHON% " setup.py %INSTALL_CMD%
18
+ if errorlevel 1 exit 1
16
19
)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
${PYTHON} setup.py clean --all
4
- ${PYTHON} setup.py install --sycl-compiler-prefix=$CONDA_PREFIX
4
+ INSTALL_CMD= " install --sycl-compiler-prefix=$CONDA_PREFIX "
5
5
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
12
6
if [ -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"
17
10
else
18
- echo " DPCPP is needed to build DPCTL. Abort!"
19
- exit 1
11
+ WHEELS_BUILD_ARGS=" -p manylinux2014_x86_64"
20
12
fi
21
- $PYTHON setup.py bdist_wheel ${WHEELS_BUILD_ARGS}
13
+ ${ PYTHON} setup.py ${INSTALL_CMD} bdist_wheel ${WHEELS_BUILD_ARGS}
22
14
cp dist/dpctl* .whl ${WHEELS_OUTPUT_FOLDER}
15
+ else
16
+ # Perform regular install
17
+ ${PYTHON} setup.py ${INSTALL_CMD}
23
18
fi
You can’t perform that action at this time.
0 commit comments