##// END OF EJS Templates
setup.py: don't call splitlines twice on the output of xcodebuild (issue3277)
Brendan Cully -
r16209:5536770b stable
parent child Browse files
Show More
@@ -454,7 +454,7 b" if sys.platform == 'darwin' and os.path."
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:
General Comments 0
You need to be logged in to leave comments. Login now