-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
46 lines (38 loc) · 1.75 KB
/
Copy pathpyproject.toml
File metadata and controls
46 lines (38 loc) · 1.75 KB
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
[build-system]
requires = ["conan-py-build"]
build-backend = "conan_py_build.build"
[project]
name = "myxslt-cibw"
version = "0.1.0"
description = "Example: conan-py-build + cibuildwheel with a shared-lib dep chain (libxslt→libxml2, zlib static)"
requires-python = ">=3.8"
license = { text = "MIT" }
[tool.conan-py-build.wheel]
packages = ["src/myxslt_cibw"]
# Set all deps to shared, then pin zlib back to static so the wheel does not
# depend on the system zlib at runtime.
[tool.conan-py-build]
extra-arguments = [
"-o=libxslt/*:shared=True",
"-o=libxml2/*:shared=True",
]
[tool.conan-py-build.sdist]
exclude = ["README.md"]
[tool.cibuildwheel]
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
# CI only: use --no-isolation so the build uses the conan-py-build wheel from the repo
# (installed in CIBW_BEFORE_BUILD) instead of the one from PyPI. For normal use you can omit this.
build-frontend = { name = "build", args = ["--no-isolation"] }
skip = ["*-musllinux*", "*-manylinux_i686", "*-win32"]
test-command = "python {project}/examples/cibw-example/test_installed.py"
[tool.cibuildwheel.linux]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "11.0" }
repair-wheel-command = "MACOSX_DEPLOYMENT_TARGET=11.0 delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
[tool.cibuildwheel.windows]
# before-all installs delvewheel in the runner environment where repair-wheel-command runs.
# before-build would install it in the per-wheel build venv, which is not on the repair PATH.
before-all = "pip install delvewheel"
repair-wheel-command = 'delvewheel repair --add-path "{project}/examples/cibw-example/build/.conan-libs" -w "{dest_dir}" "{wheel}"'