mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string (GH-24341)
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
This commit is contained in:
parent
a776da90b8
commit
49926cf2bc
6 changed files with 21 additions and 6 deletions
2
setup.py
2
setup.py
|
@ -1072,7 +1072,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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue