8000 Merge pull request #5596 from arihant2math/osx-support-313 · RustPython/RustPython@8be7e43 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8be7e43

Browse files
authored
Merge pull request #5596 from arihant2math/osx-support-313
_osx_support update to 3.13.2
2 parents 82eeb23 + 4308321 commit 8be7e43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/_osx_support.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,11 @@ def get_platform_osx(_config_vars, osname, release, machine):
507507
# MACOSX_DEPLOYMENT_TARGET.
508508

509509
macver = _config_vars.get('MACOSX_DEPLOYMENT_TARGET', '')
510+
if macver and '.' not in macver:
511+
# Ensure that the version includes at least a major
512+
# and minor version, even if MACOSX_DEPLOYMENT_TARGET
513+
# is set to a single-label version like "14".
514+
macver += '.0'
510515
macrelease = _get_system_version() or macver
511516
macver = macver or macrelease
512517

0 commit comments

Comments
 (0)
0