Skip to content

Merge with pypa/distutils@bb018f1ac3#3043

Closed
jaraco wants to merge 6 commits into
mainfrom
feature/distutils-bb018f1ac3
Closed

Merge with pypa/distutils@bb018f1ac3#3043
jaraco wants to merge 6 commits into
mainfrom
feature/distutils-bb018f1ac3

Conversation

@jaraco

@jaraco jaraco commented Jan 22, 2022

Copy link
Copy Markdown
Member
  • 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

jaraco commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

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.

4 participants