Skip to content

Commit

Permalink
馃摝 smaller Python wheels (#397)
Browse files Browse the repository at this point in the history
## Description

This PR reduces the binary wheel size for the project by only installing
the specific python bindings CMake component.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer committed May 24, 2024
1 parent ee6be25 commit 06e1ff7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ build-dir = "build/{wheel_tag}"
# Explicitly set the package directory
wheel.packages = ["src/mqt"]

install.components = ["mqt-qcec_Python"]

metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/mqt/qcec/_version.py"]
sdist.exclude = [
Expand Down
5 changes: 4 additions & 1 deletion src/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ target_link_libraries(pyqcec PRIVATE MQT::QCEC MQT::CorePython pybind11_json
MQT::ProjectOptions MQT::ProjectWarnings)

# Install directive for scikit-build-core
install(TARGETS pyqcec LIBRARY DESTINATION .)
install(
TARGETS pyqcec
DESTINATION .
COMPONENT mqt-qcec_Python)

0 comments on commit 06e1ff7

Please sign in to comment.