2025-05-10 21:59:19 +02:00
|
|
|
[build-system]
|
2025-05-25 21:50:45 +02:00
|
|
|
requires = ["setuptools"]
|
2025-05-10 21:59:19 +02:00
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
2022-05-05 22:02:11 +02:00
|
|
|
[tool.cibuildwheel]
|
|
|
|
|
build-verbosity = "3"
|
|
|
|
|
test-command = [
|
|
|
|
|
"python {package}/testdata/pymod/import_db.py",
|
|
|
|
|
"python {package}/testdata/pymod/import_rdb.py",
|
|
|
|
|
"python {package}/testdata/pymod/import_tl.py",
|
|
|
|
|
"python {package}/testdata/pymod/import_lib.py",
|
2022-05-15 23:01:37 +02:00
|
|
|
"python {package}/testdata/pymod/import_lay.py",
|
|
|
|
|
"TESTSRC={package} python {package}/testdata/pymod/pya_tests.py"
|
2022-05-05 22:02:11 +02:00
|
|
|
]
|
|
|
|
|
# Disable building PyPy wheels on all platforms
|
2024-10-25 08:04:31 +02:00
|
|
|
skip = "pp* cp36-* cp37-*"
|
2022-05-05 22:02:11 +02:00
|
|
|
|
|
|
|
|
[tool.cibuildwheel.linux]
|
|
|
|
|
# beware: the before-all script does not persist environment variables!
|
|
|
|
|
# No point in defining $PATH or $CCACHE_DIR
|
|
|
|
|
before-all = "source {project}/ci-scripts/docker/docker_prepare.sh"
|
|
|
|
|
archs = ["auto64"]
|
|
|
|
|
# Append a directory to the PATH variable (this is expanded in the build environment)
|
|
|
|
|
environment = { PATH="/usr/lib/ccache:/usr/lib64/ccache:/usr/lib/ccache/bin:$PATH" }
|
|
|
|
|
before-build = "ccache -s"
|
|
|
|
|
# Export a variable to docker
|
|
|
|
|
# CCACHE_DIR="/home/runner/work/klayout/klayout/.ccache"
|
|
|
|
|
environment-pass = ["HOST_CCACHE_DIR"]
|
|
|
|
|
|
|
|
|
|
[tool.cibuildwheel.macos]
|
2023-02-11 06:36:31 +01:00
|
|
|
# Repair macOS wheels (include libpng with the wheel, for example)
|
2024-04-30 17:42:25 +02:00
|
|
|
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v --ignore-missing-dependencies {wheel}"
|