-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
pyproject.toml
35 lines (29 loc) · 1.39 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
[build-system]
requires = ["Cython>=3.0.9", "setuptools", "wheel"]
[tool.cibuildwheel]
build-verbosity = 2
environment = {LUPA_USE_BUNDLE = "true"}
skip = ["pp*-manylinux_aarch64", "pp*-manylinux_i686", "cp38-macosx_universal2", "cp36-macosx_x86_64"]
test-skip = ["*-macosx_arm64", "*-macosx_universal2:arm64", "*-macosx_x86_64"]
test-command = "python -c \"import lupa\" && python -c \"import lupa.lua54\" "
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64", "i686"]
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
[tool.cibuildwheel.linux.environment]
CFLAGS = "-O3 -g0 -mtune=generic -pipe -fPIC -flto"
LDFLAGS = "-fPIC -flto"
LD = "gcc-ld"
AR = "gcc-ar"
NM = "gcc-nm"
RANLIB = "gcc-ranlib"
[[tool.cibuildwheel.overrides]]
select = "*aarch64"
environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72", AR = "gcc-ar", NM = "gcc-nm", RANLIB = "gcc-ranlib", LDFLAGS = "-fPIC -flto", LUPA_USE_BUNDLE = "true" }
[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", "arm64", "universal2"]