mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
This commit is contained in:
parent
975735f729
commit
04cdfa1147
6 changed files with 40 additions and 18 deletions
|
@ -450,8 +450,16 @@ def get_platform_osx(_config_vars, osname, release, machine):
|
|||
# case and disallow installs.
|
||||
cflags = _config_vars.get(_INITPRE+'CFLAGS',
|
||||
_config_vars.get('CFLAGS', ''))
|
||||
if ((macrelease + '.') >= '10.4.' and
|
||||
'-arch' in cflags.strip()):
|
||||
if macrelease:
|
||||
try:
|
||||
macrelease = tuple(int(i) for i in macrelease.split('.')[0:2])
|
||||
except ValueError:
|
||||
macrelease = (10, 0)
|
||||
else:
|
||||
# assume no universal support
|
||||
macrelease = (10, 0)
|
||||
|
||||
if (macrelease >= (10, 4)) and '-arch' in cflags.strip():
|
||||
# The universal build will build fat binaries, but not on
|
||||
# systems before 10.4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue