Skip to content

Commit edbcb51

Browse files
committed
🔧 exclude mqt-core shared libraries from wheel repair
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent 070a7a4 commit edbcb51

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

pyproject.toml

+21-2
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,34 @@ manylinux-aarch64-image = "manylinux_2_28"
283283
manylinux-ppc64le-image = "manylinux_2_28"
284284
manylinux-s390x-image = "manylinux_2_28"
285285

286+
# The mqt-core shared libraries are provided by the mqt-core Python package.
287+
# They should not be vendorized into the mqt-qcec wheel. This requires
288+
# excluding the shared libraries from the repair process.
289+
286290
[tool.cibuildwheel.linux]
287291
environment = { DEPLOY="ON" }
292+
# The SOVERSION needs to be updated when the shared libraries are updated.
293+
repair-wheel-command = """auditwheel repair -w {dest_dir} {wheel} \
294+
--exclude libmqt-core-ir.so.3.0 \
295+
--exclude libmqt-core-qasm.so.3.0 \
296+
--exclude libmqt-core-circuit-optimizer.so.3.0 \
297+
--exclude libmqt-core-algorithms.so.3.0 \
298+
--exclude libmqt-core-dd.so.3.0 \
299+
--exclude libmqt-core-zx.so.3.0"""
288300

289301
[tool.cibuildwheel.macos]
290302
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
303+
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} --ignore-missing-dependencies"
291304

292305
[tool.cibuildwheel.windows]
293-
before-build = "pip install delvewheel>=1.7.3"
294-
repair-wheel-command = "delvewheel repair -v -w {dest_dir} {wheel} --namespace-pkg mqt"
306+
before-build = "uv pip install delvewheel>=1.9.0"
307+
repair-wheel-command = """delvewheel repair -w {dest_dir} {wheel} --namespace-pkg mqt \
308+
--exclude mqt-core-ir.dll \
309+
--exclude mqt-core-qasm.dll \
310+
--exclude mqt-core-circuit-optimizer.dll \
311+
--exclude mqt-core-algorithms.dll \
312+
--exclude mqt-core-dd.dll \
313+
--exclude mqt-core-zx.dll"""
295314
environment = { CMAKE_ARGS = "-T ClangCL" }
296315

297316
[[tool.cibuildwheel.overrides]]

0 commit comments

Comments
 (0)