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

Merge with pypa/distutils@bb018f1ac3 #3043

Closed
wants to merge 6 commits into from
Closed

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Jan 22, 2022

  • util.get_host_platform: use sysconfig.get_platform
  • util.get_host_platform: restore Python 3.9 behaviour for Python 3.7/3.8
  • [maint] removed unneded exception inclusion

Summary of changes

Closes

Pull Request Checklist

naveen521kk and others added 6 commits December 31, 2021 13:35
sysconfig module has a copy of this function in
`sysconfig.get_platform` and would be better to
use that directly. This should help distributors
to patch that function in a single place,
ie sysconfig.

Co-authored-by:  Christoph Reiter <reiter.christoph@gmail.com>
Signed-off-by: Naveen M K <naveen521kk@gmail.com>
While get_host_platform() in distutils and sysconfig.get_platform() are more
or less the same for the same Python version, this extracted distutils
containing the Python 3.9 logic was exposed via setuptools to users using
older Python versions.

To avoid any breakage make sure to restore the 3.9 behaviour for 3.7/3.8.
For any newer version get_host_platform() just delegates to sysconfig
as before.

Also partly revert the docstring to be more generic and no longer mention
sysconfig.get_platform(), so no one depends on them matching.
[maint] removed unneded exception inclusion
util.get_host_platform: use sysconfig.get_platform (v2)
@jaraco jaraco force-pushed the feature/distutils-bb018f1ac3 branch from 57a6c94 to e501c09 Compare January 22, 2022 18:01
@jaraco
Copy link
Member Author

jaraco commented Jan 24, 2022

Merged as 120dd88.

@jaraco jaraco closed this Jan 24, 2022
@jaraco jaraco deleted the feature/distutils-bb018f1ac3 branch January 24, 2022 03:59
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.

None yet

4 participants