Skip to content

Add wheels build #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conda-recipe/bld.bat
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ set "DPPL_SYCL_INTERFACE_INCLDIR=dpctl\include"
"%PYTHON%" setup.py clean --all
"%PYTHON%" setup.py build install
IF %ERRORLEVEL% NEQ 0 exit 1

rem Build wheel package
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" (
%PYTHON% setup.py bdist_wheel
if errorlevel 1 exit 1
copy dist\dpctl*.whl %WHEELS_OUTPUT_FOLDER%
if errorlevel 1 exit 1
)
6 changes: 6 additions & 0 deletions conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ export CFLAGS="-fPIC -O3 ${CFLAGS}"
export LDFLAGS="-L ${OpenCL_LIBDIR} ${LDFLAGS}"
${PYTHON} setup.py clean --all
${PYTHON} setup.py build install

# Build wheel package
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
$PYTHON setup.py bdist_wheel -p manylinux1_x86_64
cp dist/dpctl*.whl ${WHEELS_OUTPUT_FOLDER}
fi
2 changes: 2 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build:
number: {{ GIT_DESCRIBE_NUMBER }}
script_env:
- ONEAPI_ROOT
- WHEELS_OUTPUT_FOLDER

requirements:
build:
Expand All @@ -24,6 +25,7 @@ requirements:
- make # [unix]
- ninja # [win]
- numpy >=1.17
- wheel
run:
- python
- numpy >=1.17
Expand Down