-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
pyproject.toml
66 lines (61 loc) · 1.31 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
63
64
65
66
[build-system]
requires = [
"setuptools>=42",
"wheel",
"ninja; sys_platform == 'windows'",
"numpy==1.13.3; python_version<'3.5'",
"oldest-supported-numpy; python_version>='3.5'",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
test-skip = [
"cp36-*",
"*-macosx_arm64"
]
test-requires = [
"opencv-python==4.6.0.66",
"numpy",
"torch"
]
test-command = [
"cd {project}/pymnn/test",
"ls",
"python unit_test.py",
"cd ../.."
]
[tool.cibuildwheel.macos]
archs = ["native"]
build = "cp*-macosx_*"
before-all = [
"pip3 install torch",
"pushd pymnn/pip_package",
"python3 build_deps.py --torch",
"popd"
]
repair-wheel-command = ""
[tool.cibuildwheel.linux]
build = "cp*-manylinux*"
skip = "pp*"
before-all = [
"yum install -y wget",
"pushd pymnn/pip_package",
"python3 build_deps.py --torch",
"popd"
]
archs = ["native"]
repair-wheel-command = [
"export LD_LIBRARY_PATH=$(pwd)/pymnn_build/tools/converter/libtorch/lib:$LD_LIBRARY_PATH",
"echo $LD_LIBRARY_PATH",
"auditwheel repair --plat manylinux2014_x86_64 -w {dest_dir} {wheel}"
]
[tool.cibuildwheel.windows]
before-all = [
"cd pymnn/pip_package",
"python3 build_deps.py",
"cd ../.."
]
test-command = [
"cd /d {project}/pymnn/test",
"python unit_test.py",
"cd ../.."
]