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

fix: do not use uv to setup python on windows when conditions are not met #2005

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Sep 14, 2024

uv was still used in setup_python on Windows even when use_uv was False.
This PR fixes setup_python to fallback to build frontend name instead of build[uv] in that case.
Added can_use_uv function to make sure wether or not uv is usable in a single place rather than duplicate the checks (and potentially forgetting one out of two if the conditions were to change).

Copy link
Contributor

@Czaki Czaki left a comment

Choose a reason for hiding this comment

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

Does the Linux not need similar refactor?

cibuildwheel/macos.py Show resolved Hide resolved
@mayeut
Copy link
Member Author

mayeut commented Sep 14, 2024

Does the Linux not need similar refactor?

Linux could if we want to push consistency even further but given it's used in only one place on Linux, the risk of modifying one place and forgetting the other does not exist there.

@henryiii henryiii merged commit 33da1f7 into pypa:main Sep 16, 2024
23 checks passed
@mayeut mayeut deleted the no-uv-windows-36 branch September 16, 2024 18:42
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.

4 participants