[PATCH] setup.py: don't call splitlines twice on the output of xcodebuild (issue3277)
Brendan Cully
brendan at kublai.com
Thu Mar 1 23:39:42 UTC 2012
# HG changeset patch
# User Brendan Cully <brendan at kublai.com>
# Date 1330645174 28800
# Node ID 32506288939de3e87d33d314edf2a7f2f8306625
# Parent 1970e6f610091533187a86388aaca9995bd0ffed
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 @@
# 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:
More information about the Mercurial-devel
mailing list