# HG changeset patch # User Matt Mackall # Date 2014-05-27 17:31:59 # Node ID 8b482d49563b285bff3b494812121764515ec35c # Parent 5d048061f2222ce6cc08124943cfd52899ab779d setup: make Xcode 5.1 check less specific Was failing on "5.1\n". diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -513,7 +513,7 @@ if sys.platform == 'darwin' and os.path. version = version[0] xcode4 = (version.startswith('Xcode') and StrictVersion(version.split()[1]) >= StrictVersion('4.0')) - xcode51 = re.match(r'^Xcode\s+5\.1\.', version) is not None + xcode51 = re.match(r'^Xcode\s+5\.1', version) is not None else: # xcodebuild returns empty on OS X Lion with XCode 4.3 not # installed, but instead with only command-line tools. Assume