Skip to content

Commit 0240697

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

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

pyproject.toml

+17-2
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,30 @@ manylinux-aarch64-image = "manylinux_2_28"
300300
manylinux-ppc64le-image = "manylinux_2_28"
301301
manylinux-s390x-image = "manylinux_2_28"
302302

303+
# The mqt-core shared libraries are provided by the mqt-core Python package.
304+
# They should not be vendorized into the mqt-qcec wheel. This requires
305+
# excluding the shared libraries from the repair process.
306+
303307
[tool.cibuildwheel.linux]
304308
environment = { DEPLOY="ON" }
309+
# The SOVERSION needs to be updated when the shared libraries are updated.
310+
repair-wheel-command = """auditwheel repair -w {dest_dir} {wheel} \
311+
--exclude libmqt-core-ir.so.2.7 \
312+
--exclude libmqt-core-circuit-optimizer.so.2.7 \
313+
--exclude libmqt-core-dd.so.2.7 \
314+
--exclude libmqt-core-zx.so.2.7"""
305315

306316
[tool.cibuildwheel.macos]
307317
environment = { MACOSX_DEPLOYMENT_TARGET = "10.15" }
318+
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} --ignore-missing-dependencies "
308319

309320
[tool.cibuildwheel.windows]
310-
before-build = "pip install delvewheel>=1.7.3"
311-
repair-wheel-command = "delvewheel repair -v -w {dest_dir} {wheel} --namespace-pkg mqt"
321+
before-build = "uv pip install delvewheel>=1.9.0"
322+
repair-wheel-command = """delvewheel repair -w {dest_dir} {wheel} --namespace-pkg mqt \
323+
--exclude mqt-core-ir.dll \
324+
--exclude mqt-core-circuit-optimizer.dll \
325+
--exclude mqt-core-dd.dll \
326+
--exclude mqt-core-zx.dll"""
312327
environment = { CMAKE_ARGS = "-T ClangCL" }
313328

314329
[[tool.cibuildwheel.overrides]]

0 commit comments

Comments
 (0)