Mercurial > hg
comparison setup.py @ 16209:5536770b3c88 stable
setup.py: don't call splitlines twice on the output of xcodebuild (issue3277)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 02 Mar 2012 10:42:12 -0800 |
parents | 82ce91a9fd94 |
children | f5dd179bfa4a |
comparison
equal
deleted
inserted
replaced
16207:374e08439ea6 | 16209:5536770b3c88 |
---|---|
452 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'): | 452 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'): |
453 # XCode 4.0 dropped support for ppc architecture, which is hardcoded in | 453 # XCode 4.0 dropped support for ppc architecture, which is hardcoded in |
454 # distutils.sysconfig | 454 # distutils.sysconfig |
455 version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() | 455 version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() |
456 if version: | 456 if version: |
457 version = version.splitlines()[0] | 457 version = version[0] |
458 xcode4 = (version.startswith('Xcode') and | 458 xcode4 = (version.startswith('Xcode') and |
459 StrictVersion(version.split()[1]) >= StrictVersion('4.0')) | 459 StrictVersion(version.split()[1]) >= StrictVersion('4.0')) |
460 else: | 460 else: |
461 # xcodebuild returns empty on OS X Lion with XCode 4.3 not | 461 # xcodebuild returns empty on OS X Lion with XCode 4.3 not |
462 # installed, but instead with only command-line tools. Assume | 462 # installed, but instead with only command-line tools. Assume |