-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
69 lines (56 loc) 路 1.87 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
67
68
69
[build-system]
requires = [
"setuptools==69.2.0",
"wheel",
"cmake == 3.26.4",
"oldest-supported-numpy",
"conan == 1.62.0",
"ninja",
"pybind11-stubgen",
"Pillow", # required for building the stubs
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]
build-verbosity = "1"
# test
test-requires = "pytest"
test-command = "pytest --exitfirst --verbose --failed-first {package}/tests"
[tool.cibuildwheel.linux]
before-all = [
# Has eigen3-devel.aarch64
"yum install -y epel-release",
# "yum install -y wget freetype-devel libpng12-devel pixman-devel zlib-devel eigen3-devel",
"yum install -y wget freetype-devel libpng12-devel pixman-devel zlib-devel",
# cairo-devel from the centos repo does not work, build here
"wget https://www.cairographics.org/snapshots/cairo-1.15.14.tar.xz --no-check-certificate",
"tar xvf cairo-*",
"cd cairo-*",
"./configure",
"make -j 20",
"make install",
"cd ..",
]
repair-wheel-command = [
# for boost libs
'source conan/conanrun.sh',
'auditwheel repair -w {dest_dir} {wheel}'
]
environment-pass = ["CIBW_BUILD"]
[tool.cibuildwheel.macos]
before-all = ["brew install gnu-sed eigen cairo freetype"]
repair-wheel-command = [
"export DYLD_LIBRARY_PATH='/usr/local/lib:/usr/lib:/Users/admin/lib'",
"source conan/conanrun.sh",
"delocate-listdeps {wheel}",
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
]
[tool.cibuildwheel.windows]
before-build = [
"pip install delvewheel",
]
environment = { TMP='C:\\temp', TEMP='C:\\temp', RUNNER_TEMP='C:\\temp'}
repair-wheel-command = [
"C:\\rdkit\\conan\\conanrun.bat",
"delvewheel show -v --add-path C:\\libs;C:\\rdkit\\vcpkg_installed\\x64-windows\\bin {wheel}",
"delvewheel repair -v --add-path C:\\libs;C:\\rdkit\\vcpkg_installed\\x64-windows\\bin -w {dest_dir} {wheel}"
]