diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-19 18:57:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 18:57:08 (GMT) |
commit | 5e0d9aea9942806e4eb25785769e8a461a6ad5bc (patch) | |
tree | cfb1d5e36ec36799d303a4a939bceacf67153e1a /Misc | |
parent | 182676bebaf866771f967f7c029ea8032e385904 (diff) | |
download | cpython-5e0d9aea9942806e4eb25785769e8a461a6ad5bc.zip cpython-5e0d9aea9942806e4eb25785769e8a461a6ad5bc.tar.gz cpython-5e0d9aea9942806e4eb25785769e8a461a6ad5bc.tar.bz2 |
[3.11] gh-102362: Fix macOS version number in result of sysconfig.get_platform() (GH-112942) (#113265)
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/macOS/2023-12-10-20-30-06.gh-issue-102362.y8svbF.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/macOS/2023-12-10-20-30-06.gh-issue-102362.y8svbF.rst b/Misc/NEWS.d/next/macOS/2023-12-10-20-30-06.gh-issue-102362.y8svbF.rst new file mode 100644 index 0000000..55c5ac0 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2023-12-10-20-30-06.gh-issue-102362.y8svbF.rst @@ -0,0 +1,3 @@ +Make sure the result of :func:`sysconfig.get_plaform` includes at least a +major and minor versions, even if ``MACOSX_DEPLOYMENT_TARGET`` is set to +only a major version during build to match the format expected by pip. |