Skip to content

Commit 13db787

Browse files
Add wheels build (#179)
* Add wheels build * Change build format * Add wheel to host requirements
1 parent 9fcbaa5 commit 13db787

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

conda-recipe/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ set "DPPL_SYCL_INTERFACE_INCLDIR=dpctl\include"
4747
"%PYTHON%" setup.py clean --all
4848
"%PYTHON%" setup.py build install
4949
IF %ERRORLEVEL% NEQ 0 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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ export CFLAGS="-fPIC -O3 ${CFLAGS}"
5656
export LDFLAGS="-L ${OpenCL_LIBDIR} ${LDFLAGS}"
5757
${PYTHON} setup.py clean --all
5858
${PYTHON} setup.py build install
59+
60+
# Build wheel package
61+
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
62+
$PYTHON setup.py bdist_wheel -p manylinux1_x86_64
63+
cp dist/dpctl*.whl ${WHEELS_OUTPUT_FOLDER}
64+
fi

conda-recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build:
1111
number: {{ GIT_DESCRIBE_NUMBER }}
1212
script_env:
1313
- ONEAPI_ROOT
14+
- WHEELS_OUTPUT_FOLDER
1415

1516
requirements:
1617
build:
@@ -24,6 +25,7 @@ requirements:
2425
- make # [unix]
2526
- ninja # [win]
2627
- numpy >=1.17
28+
- wheel
2729
run:
2830
- python
2931
- numpy >=1.17

0 commit comments

Comments
 (0)