Skip to content

Commit

Permalink
⚡ only build bindings target for Python package (#643)
Browse files Browse the repository at this point in the history
## Description

This PR slighlty optimizes the build times for the Python package by
only building the `_core` bindings target. This avoid compiling targets
that will never make it into the final wheel.

## 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 <[email protected]>
  • Loading branch information
burgholzer authored Jul 3, 2024
1 parent 1e08237 commit 7b89014
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ build-dir = "build/{wheel_tag}"
# Explicitly set the package directory
wheel.packages = ["src/mqt"]

# Only build the Python bindings target
cmake.targets = ["_core"]

# Only install the Python package component
install.components = ["mqt-core_Python"]

metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
Expand Down

0 comments on commit 7b89014

Please sign in to comment.