-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (118 loc) · 3.27 KB
/
pyproject.toml
File metadata and controls
132 lines (118 loc) · 3.27 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[tool.black]
line-length = 119
include = '\.pyi?$'
exclude = '''
(
__pycache__
| \btutorials\b
| \bbuild\b
| \.git
| \.mypy_cache
| \.pytest_cache
| \.vscode
| \.venv
| \bdist\b
| \bdoc\b
)
'''
[build-system]
requires = ["scikit-build-core"]
build-backend = "scikit_build_core.build"
# TODO: re-enable if/when scikit-core can support
# [tool.setuptools.dynamic]
# version = { attr = "arrayfire_wrapper.__version__" }
# dynamic = ["version"]
[project]
name = "arrayfire-binary-python-wrapper"
version = "0.8.0"
requires-python = ">=3.10"
authors = [
{ name = "ArrayFire", email = "technical@arrayfire.com"},
{ name = "Anton Chernyatevich", email = "chernyatevich.a@gmail.com" },
]
maintainers = [{ name = "ArrayFire", email = "technical@arrayfire.com" }]
description = "ArrayFire Python Wrapper"
readme = "README.md"
license = { file = "LICENSE" }
keywords = [
"arrayfire",
"c",
"python",
"wrapper",
"parallel computing",
"gpu",
"cpu",
"opencl",
"oneapi",
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development :: Libraries",
]
[project.urls]
Website = "http://arrayfire.com"
"General Documentation" = "https://arrayfire.org/docs/index.htm"
#TODO: Documentation, Repository
[tool.scikit-build]
# The build directory. Defaults to a temporary directory, but can be set.
build-dir = "build"
[tool.scikit-build.wheel]
py-api = "py3"
packages = ["arrayfire_wrapper"]
expand-macos-universal-tags = true
exclude = [
"libaf.so",
"libaf.so.3.10.0",
"libafcpu.so",
"libafcpu.so.3.10.0",
"libafopencl.so",
"libafopencl.so.3.10.0",
"libafcuda.so",
"libafcuda.so.3.10.0",
"libafoneapi.so",
"libafoneapi.so.3.10.0",
"libforge.so",
"libforge.so.1.0.8",
"libmkl_core.so",
"libmkl_rt.so",
"libmkl_intel_thread.so",
"libmkl_intel_lp64.so",
]
[tool.scikit-build.cmake]
build-type = "Release" # not working for whatever reason, duplicated below TODO: fix
[tool.scikit-build.cmake.define]
# edit to enable/disable building of desired backends
AF_BUILD_CPU = "ON"
#AF_BUILD_ONEAPI = "ON"
#AF_BUILD_CUDA = "ON"
#AF_BUILD_OPENCL = "ON"
AF_BUILD_UNIFIED = "ON"
AF_BUILD_DOCS = "OFF"
CMAKE_BUILD_TYPE = "Release"
AF_BUILD_EXAMPLES = "OFF"
#AF_WITH_IMAGEIO = "ON"
AF_WITH_LOGGING = "ON"
AF_WITH_FMT_HEADER_ONLY = "ON"
AF_WITH_SPDLOG_HEADER_ONLY = "ON"
AF_TEST_WITH_MTX_FILES = "OFF"
AF_INSTALL_STANDALONE = "ON"
#AF_COMPUTE_LIBRARY = "Intel-MKL"
#AF_ADDITIONAL_MKL_LIBRARIES = ""
#AF_WITH_STATIC_CUDA_NUMERIC_LIBS = "OFF"
#CUDA_architecture_build_targets = "5.0;5.2;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0;9.0+PTX"
#AF_BUILD_FORGE = "ON"
#FG_USE_STATIC_CPPFLAGS:BOOL = "OFF"
#FG_WITH_FREEIMAGE = "OFF"
#_GLIBCXX_USE_CXX11_ABI = "1"
[tool.scikit-build.logging]
level = "INFO"