forked from IntelPython/dpnp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
78 lines (69 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import importlib.machinery as imm
import os
from skbuild import setup
import versioneer
"""
Get the project version
"""
thefile_path = os.path.abspath(os.path.dirname(__file__))
version_mod = imm.SourceFileLoader(
"version", os.path.join(thefile_path, "dpnp", "_version.py")
).load_module()
__version__ = version_mod.get_versions()["version"]
"""
Set project auxiliary data like readme and licence files
"""
with open("README.md") as f:
__readme_file__ = f.read()
def _get_cmdclass():
return versioneer.get_cmdclass()
CLASSIFIERS = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: C++
Programming Language :: Cython
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development
Topic :: Scientific/Engineering
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
"""
setup(
name="dpnp",
version=__version__,
cmdclass=_get_cmdclass(),
description="Data Parallel Extension for NumPy",
long_description=__readme_file__,
long_description_content_type="text/markdown",
license="Apache 2.0",
classifiers=[_f for _f in CLASSIFIERS.split("\n") if _f],
keywords="sycl numpy python3 intel mkl oneapi gpu dpcpp",
platforms=["Linux", "Windows"],
author="Intel Corporation",
url="https://github.com/IntelPython/dpnp",
packages=[
"dpnp",
"dpnp.dpnp_algo",
"dpnp.dpnp_utils",
"dpnp.fft",
"dpnp.linalg",
"dpnp.random",
],
package_data={
"dpnp": [
"libdpnp_backend_c.so",
"dpnp_backend_c.lib",
"dpnp_backend_c.dll",
]
},
include_package_data=True,
)