diff 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
line wrap: on
line diff
--- 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: