forked from kendryte/nncase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
39 lines (32 loc) · 1.2 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
[project]
requires-python = ">=3.6"
[build-system]
requires = ["setuptools>=42", "wheel", "conan", "ninja"]
[tool.cibuildwheel]
build = "cp3*"
skip = "*musllinux*"
manylinux-x86_64-image = "sunnycase/manylinux_2_24_x86_64:version1.0"
test-requires = "pytest"
test-command = [
"pytest {project}/tests/other"
]
[tool.cibuildwheel.environment]
PYTHONPATH = "{project}/tests:$PYTHONPATH"
[tool.cibuildwheel.windows]
archs = ["AMD64"]
[tool.cibuildwheel.linux]
archs = ["x86_64"]
before-all = [
"pip install conan",
"conan profile new default --detect",
"conan profile update settings.compiler.libcxx=libstdc++11 default",
"wget https://sdk.lunarg.com/sdk/download/1.2.182.0/linux/vulkansdk-linux-x86_64-1.2.182.0.tar.gz -O vulkansdk.tar.gz",
"tar xf vulkansdk.tar.gz",
"cp -P 1.2.182.0/x86_64/lib/libvulkan.so* /usr/local/lib/"
]
before-build = "pip install https://github.com/sunnycase/auditwheel/releases/download/4.0.0-nncase-2/auditwheel-0.0.0-py3-none-any.whl"
repair-wheel-command = "LD_LIBRARY_PATH=/usr/lib64 auditwheel repair -w {dest_dir} {wheel} --exclude libvulkan.so.1,libgomp.so.1"
[tool.cibuildwheel.macos]
archs = ["x86_64"]
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "10.15"