Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.

This commit is contained in:
Ned Deily 2014-06-25 13:36:14 -07:00
parent 975735f729
commit 04cdfa1147
6 changed files with 40 additions and 18 deletions

View file

@ -697,7 +697,9 @@ class PyBuildExt(build_ext):
if host_platform == 'darwin':
os_release = int(os.uname()[2].split('.')[0])
dep_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
if dep_target and dep_target.split('.') < ['10', '5']:
if (dep_target and
(tuple(int(n) for n in dep_target.split('.')[0:2])
< (10, 5) ) ):
os_release = 8
if os_release < 9:
# MacOSX 10.4 has a broken readline. Don't try to build