@@ -283,15 +283,34 @@ manylinux-aarch64-image = "manylinux_2_28"
283
283
manylinux-ppc64le-image = " manylinux_2_28"
284
284
manylinux-s390x-image = " manylinux_2_28"
285
285
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
+
286
290
[tool .cibuildwheel .linux ]
287
291
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"""
288
300
289
301
[tool .cibuildwheel .macos ]
290
302
environment = { MACOSX_DEPLOYMENT_TARGET = " 10.15" }
303
+ repair-wheel-command = " delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} --ignore-missing-dependencies"
291
304
292
305
[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"""
295
314
environment = { CMAKE_ARGS = " -T ClangCL" }
296
315
297
316
[[tool .cibuildwheel .overrides ]]
0 commit comments