diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-01 04:22:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 04:22:48 (GMT) |
commit | d6675fee1aac1af87dc31c411d04a5bfc1f39079 (patch) | |
tree | 153f7fd38eac23720b3046c8d3b172000d84ea9a /setup.py | |
parent | 3c8d6934436e20163be802f5239c5b4e4925eeec (diff) | |
download | cpython-d6675fee1aac1af87dc31c411d04a5bfc1f39079.zip cpython-d6675fee1aac1af87dc31c411d04a5bfc1f39079.tar.gz cpython-d6675fee1aac1af87dc31c411d04a5bfc1f39079.tar.bz2 |
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341) (GH-24410)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
(cherry picked from commit 49926cf2bcc8b44d9b8f148d81979ada191dd9d5)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1013,7 +1013,7 @@ class PyBuildExt(build_ext): os_release = int(os.uname()[2].split('.')[0]) dep_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') if (dep_target and - (tuple(int(n) for n in str(dep_target).split('.')[0:2]) + (tuple(int(n) for n in dep_target.split('.')[0:2]) < (10, 5) ) ): os_release = 8 if os_release < 9: |