mirror of
https://github.com/python/cpython.git
synced 2025-10-29 12:44:56 +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
|
|
@ -54,8 +54,8 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0):
|
|||
global _cfg_target, _cfg_target_split
|
||||
if _cfg_target is None:
|
||||
from distutils import sysconfig
|
||||
_cfg_target = str(sysconfig.get_config_var(
|
||||
'MACOSX_DEPLOYMENT_TARGET') or '')
|
||||
_cfg_target = sysconfig.get_config_var(
|
||||
'MACOSX_DEPLOYMENT_TARGET') or ''
|
||||
if _cfg_target:
|
||||
_cfg_target_split = [int(x) for x in _cfg_target.split('.')]
|
||||
if _cfg_target:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue