forked from inducer/pyopencl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
46 lines (40 loc) · 1.7 KB
/
pyproject.toml
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
[build-system]
# Minimum requirements for the build system to execute.
requires = [
"setuptools>=42.0.0",
"wheel>=0.34.2",
"numpy;python_version >= '3.9' and platform_python_implementation == 'PyPy'",
"numpy==1.25.2;python_version < '3.9' or platform_python_implementation != 'PyPy'",
"pybind11>=2.5.0"
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
test-command = "pytest {project}/test"
test-extras = ["test"]
# Skipping 3.12 for now because of
# https://github.com/numpy/numpy/issues/22623
[tool.cibuildwheel.linux]
skip = ["pp37*", "cp36-*", "cp37-*", "cp312-*"]
test-command = ""
before-all = [
"yum install -y git openssl-devel ruby",
"bash {package}/scripts/build-ocl.sh",
]
repair-wheel-command = "auditwheel repair -w {dest_dir} --lib-sdir=/.libs {wheel}"
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
before-all = [
"apk add ruby git openssl-dev",
"bash {package}/scripts/build-ocl.sh",
]
repair-wheel-command = "auditwheel repair -w {dest_dir} --lib-sdir=/.libs {wheel}"
[tool.cibuildwheel.macos]
skip = ["pp*", "cp36-*", "cp37-*", "cp312-*"]
before-all = "bash {package}/scripts/build-ocl-macos.sh"
test-command = "pytest {project}/test/test_array.py" # same limitation as conda-forge
# https://github.com/conda-forge/pyopencl-feedstock/blob/6f3c5de59b18c9518abba3cb94f6ae92964553f8/recipe/meta.yaml#L62-L63
[tool.cibuildwheel.windows]
skip = ["*-win32", "pp*", "cp36-*", "cp37-*", "cp312-*"]
test-command = ""
before-all = "bash {package}/scripts/build-ocl-windows.sh"
before-build = "python configure.py --cl-inc-dir=D:/a/pyopencl/pyopencl/OpenCL-Headers/install/include --cl-lib-dir=\"C:/Program Files/OpenCL-ICD-Loader/lib\""