Skip to content

Commit 4a509fa

Browse files
Add wheels build (#179) (#183)
* Add wheels build * Change build format * Add wheel to host requirements Co-authored-by: Vyacheslav-Smirnov <[email protected]>
1 parent dff89d1 commit 4a509fa

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
@@ -7,3 +7,11 @@ IF %ERRORLEVEL% NEQ 0 (
77
"%PYTHON%" setup.py clean --all
88
"%PYTHON%" setup.py install
99
IF %ERRORLEVEL% NEQ 0 exit /b 1
10+
11+
rem Build wheel package
12+
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
13+
%PYTHON% setup.py bdist_wheel
14+
if errorlevel 1 exit 1
15+
copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
16+
if errorlevel 1 exit 1
17+
)

conda-recipe/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,9 @@ fi
1111

1212
${PYTHON} setup.py clean --all
1313
${PYTHON} setup.py install
14+
15+
# Build wheel package
16+
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
17+
$PYTHON setup.py bdist_wheel -p manylinux1_x86_64
18+
cp dist/dpctl*.whl ${WHEELS_OUTPUT_FOLDER}
19+
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:
@@ -23,6 +24,7 @@ requirements:
2324
- make # [unix]
2425
- ninja # [win]
2526
- numpy >=1.17
27+
- wheel
2628
run:
2729
- python
2830
- numpy >=1.17

0 commit comments

Comments
 (0)