]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942)
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 18 Dec 2023 23:51:58 +0000 (00:51 +0100)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2023 23:51:58 +0000 (18:51 -0500)
commit893c9ccf48eacb02fa6ae93632f2d0cb6778dbb6
treec8d5d8692de08520ee0a87a84a15a673142f5ab9
parent4cfce3a4da7ca9513e7f2c8ec94d50f8bddfa41b
gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942)

Change _osx_support.get_platform_osx() to make sure that the
version number in the result includes at least a major and
minor version (e.g. 14.2) even if MACOSX_DEPLOYMENT_TARGET is
set to just a major version (e.g. 14).

This matches the versions expected by pip when selecting
appropriate wheels for installation.
Lib/_osx_support.py
Misc/NEWS.d/next/macOS/2023-12-10-20-30-06.gh-issue-102362.y8svbF.rst [new file with mode: 0644]