forked from kendryte/nncase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
62 lines (54 loc) · 2.01 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[project]
name = "nncase"
dynamic = ["version"]
requires-python = ">=3.7"
authors = [{ name = "sunnycase" }, { email = "sunnycase@live.cn" }]
maintainers = [{ name = "sunnycase" }, { email = "sunnycase@live.cn" }]
readme = "README.md"
description = "A neural network compiler for AI accelerators"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: C++",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
keywords = ["kendryte", "nn", "compiler", "k210", "k510", "k230"]
dependencies = ["numpy"]
[project.urls]
homepage = "https://github.com/kendryte/nncase"
[build-system]
requires = ["setuptools>=42", "wheel", "conan<=1.59", "ninja", "gitpython"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build = ["cp37*", "cp38*", "cp39*", "cp310*"]
skip = "*musllinux*"
manylinux-x86_64-image = "sunnycase/manylinux2014_x86_64:1.1"
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==1.59",
"conan profile new default --detect",
"conan profile update settings.compiler.libcxx=libstdc++11 default",
"curl -L https://sdk.lunarg.com/sdk/download/1.3.268.0/linux/vulkansdk-linux-x86_64-1.3.268.0.tar.xz --output vulkansdk.tar.xz",
"tar xf vulkansdk.tar.xz",
"cp -P 1.3.268.0/x86_64/lib/libvulkan.so* /usr/local/lib/"
]
before-build = "pip install auditwheel"
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"