cda-tum / mqt-core

MQT Core - The Backbone of the Munich Quantum Toolkit
https://mqt.readthedocs.io/projects/core
MIT License
62 stars 31 forks source link

📦 only install the Python component of MQT Core in Python package builds #609

Closed burgholzer closed 6 months ago

burgholzer commented 6 months ago

Description

This PR adapts the scikit-build-core configuration so that it only installs the Python bindings module instead of the whole library. On my linux desktop, this reduced the wheel size from roughly 40MB down to roughly 650KB.

If we really want to also ship the project libraries with the Python package, we will probably have to go with shared libraries and appropriately manage symbol visibility to keep the shared libraries as small as possible.

Fixes #530

Checklist: