[PATCH STABLE] fix build for XCode < 4.3

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Mar 2 10:28:59 CST 2012


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1330705692 21600
# Branch stable
# Node ID e5c7cb1b9ac0d64cbf9bd5a59d1f6a9460bd977f
# Parent  b2d6832db30668c74ef16cf8fb530ea1f6c50440
fix build for XCode < 4.3

There was an error in 82ce91a9fd94 that caused splitlines() to be
called twice in situations other than the one fixed by that
changeset.

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:


More information about the Mercurial-devel mailing list