Skip to content

Commit 1d07bc9

Browse files
Update package wheel (#555)
* Update packages wheel deps * Do not search deps via setuptools * Fix build: no search for dpes via setuptools * Add set -ex to build.sh * Revert changes to meta.yaml, build.sh and install_requires in setup.py * Remove author_email * Add correct license description * Add How to for install dpnp wheel package * Add RPATH for wheels; update readme
1 parent 35e65b3 commit 1d07bc9

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ cd dpnp
2525
./0.build.sh
2626
```
2727

28+
## Install Wheel Package from Pypi
29+
Install DPNP
30+
```cmd
31+
python -m pip install --index-url https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple dpnp
32+
```
33+
Note: DPNP wheel package is placed on Pypi, but some of its dependencies (like Intel numpy) are in Anaconda Cloud.
34+
That is why install command requires additional intel Pypi channel from Anaconda Cloud.
35+
36+
Set path to Performance Libraries in case of using venv or system Python:
37+
```cmd
38+
export LD_LIBRARY_PATH=<path_to_your_env>/lib
39+
```
40+
41+
It is also required to set following environment variables:
42+
```cmd
43+
export OCL_ICD_FILENAMES_RESET=1
44+
export OCL_ICD_FILENAMES=libintelocl.so
45+
```
46+
2847
## Run test
2948
```bash
3049
. ./0.env.sh

conda-recipe/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ if [ -n "${TBBROOT}" ]; then
2525
. ${TBBROOT}/env/vars.sh
2626
fi
2727

28+
# Set RPATH for wheels
29+
export CFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $CFLAGS"
30+
export LDFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $LDFLAGS"
31+
2832
$PYTHON setup.py build_clib
2933
$PYTHON setup.py build_ext install
3034

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@
7373
with open('README.md') as f:
7474
__readme_file__ = f.read()
7575

76-
with open('LICENSE.txt') as f:
77-
__license_file__ = f.read()
78-
7976
CLASSIFIERS = """\
8077
Development Status :: 0 - Alpha
8178
Intended Audience :: Science/Research
@@ -183,13 +180,13 @@
183180
version=__version__,
184181
description="NumPy-like API accelerated with SYCL",
185182
long_description=__readme_file__,
183+
long_description_content_type="text/markdown",
186184
author="Intel Corporation",
187-
author_email="Intel Corporation",
188185
maintainer="Intel Corp.",
189186
maintainer_email="[email protected]",
190187
url="https://intelpython.github.io/dpnp/",
191188
download_url="https://github.com/IntelPython/dpnp",
192-
license=__license_file__,
189+
license='BSD',
193190
classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
194191
keywords="sycl numpy python3 intel mkl oneapi gpu dpcpp pstl",
195192
platforms=["Linux", "Windows"],

0 commit comments

Comments
 (0)