Keep compatibility with setuptools
tagging wheels with py2.py3
#1286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modern versions of
setuptools
emit a warning when theuniversal = 1
option ofbdist_wheel
is used. This warning will turn into an error on Aug 30, 2025.The only function of
universal = 1
is assigning the dualpy2.py3
tag to the wheels. It does not perform any content or metadata compatibility validation that might be related to this.It is possible to keep producing same-tagged wheels by setting the non-deprecated
python_tag
option instead, which is what this PR does.Fixes #1283
Ref pypa/setuptools#4939