-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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 self-reporting of PEP 425 tags to sysconfig #99560
Comments
xref @FFY00 |
I think it's also contextually relevant that the reason But, an interpreter can definitely know its own tag (within a specific release cycle and OS, no less), and this doesn't represent something that has such high change velocity that it needs to be delegated out to a featured package distributed by PyPI. So, for this reason I strongly believe it should be added to sysconfig so that PEP 517 build backends can know what sort of wheel tags to produce. This is particularly important for Meson, which has a bootstrapping policy -- and as a result, cannot depend on functionality outside of the stdlib. |
+1 for adding the 3 proposed functions. A note on naming: please don't include |
Feature or enhancement
Add
pep425_python_tag()
,pep425_abi_tag()
andpep425_platform_tag()
functions tosysconfig
so the interpreter can self report.Pitch
(Explain why this feature or enhancement should be implemented and how it would be used.
Add examples, if applicable.)
PEP 425 proposed three compatibility tags for wheel name formats: "python tag", "abi tag" and "platform tag". These are used when generating the name of a wheel to upload to PyPI and in selecting a wheel to install. Over time generation of these tags was delegated to
pypa/packaging/tags.py
which probes the current interpreter for information using various heuristics to generate the proper tags. This should be the job of the interpreter to self report.Previous discussion
This came out of this comment in a PR to change the abi-tag determination, and also would provide the interfaces requested in this PR, this PR, and maybe even this pr.
The text was updated successfully, but these errors were encountered: