cda-tum / mqt-qcec

MQT QCEC - A tool for Quantum Circuit Equivalence Checking
https://mqt.readthedocs.io/projects/qcec
MIT License
90 stars 21 forks source link

🐛 Fix broken `manylinux` wheels #310

Closed burgholzer closed 1 year ago

burgholzer commented 1 year ago

Description

Due to the way Linux wheels are built by cibuildwheel (in a manylinux docker container), environment varaiables are not passed down to the container. As a result the CI environment variable is not defined in the docker container, which is used to flip on the DEPLOY CMake setting automatically. This has lead to manylinux wheels being built with -march=native that might produce errors like

Illegal instruction (core dumped)

when trying to import the respective packages.

This PR fixes this by making sure that DEPLOY="ON" within cibuildwheel.

Checklist: