setup.py: don't call splitlines twice on the output of xcodebuild (issue3277) stable
authorBrendan Cully <brendan@kublai.com>
Fri, 02 Mar 2012 10:42:12 -0800
branchstable
changeset 16209 5536770b3c88
parent 16207 374e08439ea6
child 16210 726ce5d794b2
child 16215 8412d5a02e6e
setup.py: don't call splitlines twice on the output of xcodebuild (issue3277)
setup.py
--- a/setup.py	Fri Mar 02 09:54:45 2012 +0100
+++ b/setup.py	Fri Mar 02 10:42:12 2012 -0800
@@ -454,7 +454,7 @@
     # distutils.sysconfig
     version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines()
     if version:
-        version = version.splitlines()[0]
+        version = version[0]
         xcode4 = (version.startswith('Xcode') and
                   StrictVersion(version.split()[1]) >= StrictVersion('4.0'))
     else: