-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (59 loc) · 2.17 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
[build-system]
requires = ["Cython>=3.0.11", "setuptools", "wheel"]
[tool.cibuildwheel]
build-verbosity = 1
environment = {STATIC_DEPS="true", LIBXML2_VERSION = "2.12.9", LIBXSLT_VERSION = "1.1.42"}
skip = [
"pp*-manylinux_i686",
"*-musllinux_i686",
# Py3.8 wheel for macos is not universal: https://bugs.launchpad.net/lxml/+bug/2055404
"cp38-macosx_universal2",
# Reduce job load and HTTP hit rate on library servers.
"cp36-manylinux_aarch64",
"cp36-musllinux_aarch64",
"cp36-manylinux_ppc64le",
"cp37-manylinux_ppc64le",
"cp38-manylinux_ppc64le",
"cp36-musllinux_ppc64le",
"cp37-musllinux_ppc64le",
"cp38-musllinux_ppc64le",
"cp36-manylinux_s390x",
"cp37-manylinux_s390x",
"cp38-manylinux_s390x",
"cp36-musllinux_s390x",
"cp37-musllinux_s390x",
"cp38-musllinux_s390x",
]
#test-command = "python {package}/test.py -vv"
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "i686", "ppc64le", "s390x"]
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
[tool.cibuildwheel.linux.environment]
CFLAGS = "-O3 -g1 -pipe -fPIC -flto"
AR = "gcc-ar"
NM = "gcc-nm"
RANLIB = "gcc-ranlib"
LDFLAGS = "-fPIC -flto"
STATIC_DEPS = "true"
LIBXML2_VERSION = "2.12.9"
LIBXSLT_VERSION = "1.1.42"
[[tool.cibuildwheel.overrides]]
select = "*linux_i686"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
[[tool.cibuildwheel.overrides]]
select = "*linux_x86_64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
[[tool.cibuildwheel.overrides]]
select = "*aarch64"
inherit.environment = "append"
environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72"
[tool.cibuildwheel.windows]
archs = ["AMD64", "x86"]
[tool.cibuildwheel.macos]
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
# x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
# so additional arm64 wheels would suffice. However, since the library build uses a mixed
# amd64/arm64 setup, we build universal2 wheels regardless.
archs = ["x86_64", "universal2"]