]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-102362: Fix macOS version number in result of sysconfig.get_platform()...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 19 Dec 2023 18:51:17 +0000 (19:51 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Dec 2023 18:51:17 +0000 (19:51 +0100)
commitce49a9f60e185e80717c0393b948e12774bfd2a6
treeb9ea9702176ee6726eafcdc2051c87eccee7c7c4
parent72bbd88876c1ba1242c0c40121fef429909d2b07
[3.12] gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942) (#113264)

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.
(cherry picked from commit 893c9ccf48eacb02fa6ae93632f2d0cb6778dbb6)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
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]