diff -r 98475e024344 Lib/_osx_support.py --- a/Lib/_osx_support.py Fri May 30 16:28:00 2014 -0400 +++ b/Lib/_osx_support.py Mon Apr 13 16:38:23 2015 -0400 @@ -3,6 +3,7 @@ import os import re import sys +from distutils.version import StrictVersion __all__ = [ 'compiler_fixup', @@ -450,7 +451,10 @@ # case and disallow installs. cflags = _config_vars.get(_INITPRE+'CFLAGS', _config_vars.get('CFLAGS', '')) - if ((macrelease + '.') >= '10.4.' and + # Doing string comparison on version leads to 10.10 < 10.4 == True + macrelease_cmp = StrictVersion(macrelease) + version_to_cmp_to = StrictVersion('10.4') + if (macrelease_cmp >= version_to_cmp_to and '-arch' in cflags.strip()): # The universal build will build fat binaries, but not on # systems before 10.4