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

Work around platform.python_version() returning non PEP 440 compliant version for non-tagged CPython builds #802

Merged
merged 2 commits into from
May 20, 2024

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented May 19, 2024

Fixes #678

Since #678 will make things difficult for pip 24.1 users using non-tagged python builds, I'm proposing this solution.

We could also work around it in pip but this would be messier and would not solve the problem for packaging users.

CPython could also be changed, but it is likely more complex to achieve and probably not doable for older CPython versions.

@pradyunsg pradyunsg merged commit 3e67fc7 into pypa:main May 20, 2024
32 checks passed
@pradyunsg pradyunsg changed the title Work around platform.python_version() returning non PEP 440 compliant version for non-tagged Python builds Work around platform.python_version() returning non PEP 440 compliant version for non-tagged CPython builds May 20, 2024
@sbidoul sbidoul deleted the python_full_version-plus branch May 21, 2024 06:03
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.

Non-tagged Python builds use non-PEP 440 versions
2 participants