Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to pass extra flags to a build frontend through CIBW_BUILD_FRONTEND #1588

Merged
merged 4 commits into from Sep 18, 2023

Conversation

joerick
Copy link
Contributor

@joerick joerick commented Aug 26, 2023

Fixes #1580.

Adds the ability to pass extra arguments to the build frontend using an option like CIBW_BUILD_FRONTEND=pip; args: --no-build-isolation. The mini-syntax is the same as CIBW_CONTAINER_ENGINE.

I liked this approach because it adds extra flexibility to the existing CIBW_BUILD_FRONTEND option in a backward-compatible way. Also, options are always going to be different between pip and build, so it makes sense to nest those within this option - if you change the build frontend, you have to change the args too.

cibuildwheel/options.py Outdated Show resolved Hide resolved
@joerick
Copy link
Contributor Author

joerick commented Sep 18, 2023

Would love a review on this @henryiii if you have time?

Copy link
Contributor

@henryiii henryiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine. No build isolation does seem common/useful enough to make its own flag, but having this flexibility is useful (for example, you can select whether to validate the non-isolated environment).

@joerick joerick merged commit 76dba0b into main Sep 18, 2023
24 checks passed
@joerick joerick deleted the frontend-flags branch September 18, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] CIBW_BUILD_ISOLATION or similar
3 participants