# HG changeset patch # User Brendan Cully # Date 2012-03-02 18:42:12 # Node ID 5536770b3c88f3e358c637ce547e32c484dcfb03 # Parent 374e08439ea655e3907a016f7f30531f6499f75d setup.py: don't call splitlines twice on the output of xcodebuild (issue3277) diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -454,7 +454,7 @@ if sys.platform == 'darwin' and os.path. # 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: