Title: Add self-reporting of PEP 425 tags to sysconfig · Issue #99560 · python/cpython · GitHub
Open Graph Title: Add self-reporting of PEP 425 tags to sysconfig · Issue #99560 · python/cpython
X Title: Add self-reporting of PEP 425 tags to sysconfig · Issue #99560 · python/cpython
Description: Feature or enhancement Add pep425_python_tag(), pep425_abi_tag() and pep425_platform_tag() functions to sysconfig so the interpreter can self report. Pitch (Explain why this feature or enhancement should be implemented and how it would b...
Open Graph Description: Feature or enhancement Add pep425_python_tag(), pep425_abi_tag() and pep425_platform_tag() functions to sysconfig so the interpreter can self report. Pitch (Explain why this feature or enhancement ...
X Description: Feature or enhancement Add pep425_python_tag(), pep425_abi_tag() and pep425_platform_tag() functions to sysconfig so the interpreter can self report. Pitch (Explain why this feature or enhancement ...
Opengraph URL: https://github.com/python/cpython/issues/99560
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add self-reporting of PEP 425 tags to sysconfig","articleBody":"# Feature or enhancement\r\n\r\nAdd `pep425_python_tag()`, `pep425_abi_tag()` and `pep425_platform_tag()` functions to `sysconfig` so the interpreter can self report.\r\n\r\n# Pitch\r\n\r\n(Explain why this feature or enhancement should be implemented and how it would be used.\r\n Add examples, if applicable.)\r\n\r\n[PEP 425](https://peps.python.org/pep-0425/) 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`](https://github.com/pypa/packaging/blob/606c71acce93d04e778cdbdea16231b36d6b870f/packaging/tags.py#L171) 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.\r\n\r\n# Previous discussion\r\n\r\n\u003c!--\r\n New features to Python should first be discussed elsewhere before creating issues on GitHub,\r\n for example in the \"ideas\" category (https://discuss.python.org/c/ideas/6) of discuss.python.org,\r\n or the python-ideas mailing list (https://mail.python.org/mailman3/lists/python-ideas.python.org/).\r\n Use this space to post links to the places where you have already discussed this feature proposal:\r\n-->\r\n\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n-->\r\n\r\nThis came out of [this comment](https://github.com/pypa/packaging/pull/607#issuecomment-1317730985) in a PR to change the abi-tag determination, and also would provide the interfaces requested in [this PR](https://github.com/pypa/packaging/pull/611), [this PR](https://github.com/pypa/packaging/pull/613), and maybe even [this pr](https://github.com/pypa/packaging/pull/614).","author":{"url":"https://github.com/mattip","@type":"Person","name":"mattip"},"datePublished":"2022-11-17T06:12:51Z","url":"https://github.com/python/cpython/issues/99560"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:414cb53d-cc79-84a2-9efc-a36cf6e55f7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A958:311640:3D528EC:4DEC54E:6B0211BE |
| html-safe-nonce | 23a304b1fd5e579c7d1e1d605da6f50e3be4aa91d970dca9a9386423d7402548 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTU4OjMxMTY0MDozRDUyOEVDOjRERUM1NEU6NkIwMjExQkUiLCJ2aXNpdG9yX2lkIjoiMzAyNDg3MzEwNjc1OTA5NDcxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7343e190d19c151e90b3ff4c66ea74d12138a060478344c15c3014cfeaed5b79 |
| hovercard-subject-tag | issue:1452774235 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/99560/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21589bcd531c88af4d6de826eeb397357d70db653253eb345fdc26bcb3fc8872/python/cpython/issues/99560 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21589bcd531c88af4d6de826eeb397357d70db653253eb345fdc26bcb3fc8872/python/cpython/issues/99560 |
| og:image:alt | Feature or enhancement Add pep425_python_tag(), pep425_abi_tag() and pep425_platform_tag() functions to sysconfig so the interpreter can self report. Pitch (Explain why this feature or enhancement ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattip |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width