Skip to content

Commit f5a401e

Browse files
Wheel changes to master (#654)
* Fix bandit issues part 1 (#608) (#613)
1 parent 2db5cd3 commit f5a401e

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

README.md

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

29+
## Install Wheel Package from Pypi
30+
Install DPNP
31+
```cmd
32+
python -m pip install --index-url https://pypi.anaconda.org/intel/simple -extra-index-url https://pypi.org/simple dpnp
33+
```
34+
Note: DPNP wheel package is placed on Pypi, but some of its dependencies (like Intel numpy) are in Anaconda Cloud.
35+
That is why install command requires additional intel Pypi channel from Anaconda Cloud.
36+
37+
Set path to Performance Libraries in case of using venv or system Python:
38+
```cmd
39+
export LD_LIBRARY_PATH=<path_to_your_env>/lib
40+
```
41+
42+
It is also required to set following environment variables:
43+
```cmd
44+
export OCL_ICD_FILENAMES_RESET=1
45+
export OCL_ICD_FILENAMES=libintelocl.so
46+
```
47+
2948
## Run test
3049
```bash
3150
. ./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: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,8 @@
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 = """\
80-
Development Status :: 0 - Alpha
77+
Development Status :: 4 - Beta
8178
Intended Audience :: Science/Research
8279
Intended Audience :: Developers
8380
License :: OSI Approved
@@ -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="scripting@intel.com",
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)