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: error out if multiple wheels with the same name are produced #1152

Merged
merged 3 commits into from Jul 5, 2022

Conversation

mayeut
Copy link
Member

@mayeut mayeut commented Jun 19, 2022

We shouldn't silently overwrite wheels that are produced in the same run that have the same filename, as this implies a misconfiguration.

fix #1142
builds on top of #1151

@mayeut
Copy link
Member Author

mayeut commented Jun 19, 2022

I'll have to debug the Windows failure later, probably not before next week-end.

EDIT: The Windows test is now fixed (was not working with single quotes in the repair command).

This extends the mechanism introduced in pypa#1091 for `abi3` wheels.
Most of the mentions to `abi3` have been removed and replaced by a more generic `compatible_wheel`.
This allows to build a wheel `foo-0.1-py3-none-win_amd64.whl` only once and still test with every configured python.
We shouldn't silently overwrite wheels that are produced in the same run that have the same filename, as this implies a misconfiguration.
Copy link
Contributor

@joerick joerick left a comment

Choose a reason for hiding this comment

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

This looks good, thank you @mayeut. I've just reviewed the commit ef18186, since the rest is in a different PR.

@joerick joerick merged commit e035e3a into pypa:main Jul 5, 2022
@mayeut mayeut deleted the already-built branch July 14, 2022 09:49
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.

cibuildwheel should error out if the same build produces multiple wheels with the same filename
3 participants