Mercurial > hg
comparison setup.py @ 21558:8b482d49563b
setup: make Xcode 5.1 check less specific
Was failing on "5.1\n".
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 27 May 2014 10:31:59 -0700 |
parents | 54d7657d7d1e |
children | 0c88185c7d6c |
comparison
equal
deleted
inserted
replaced
21557:5d048061f222 | 21558:8b482d49563b |
---|---|
511 version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() | 511 version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() |
512 if version: | 512 if version: |
513 version = version[0] | 513 version = version[0] |
514 xcode4 = (version.startswith('Xcode') and | 514 xcode4 = (version.startswith('Xcode') and |
515 StrictVersion(version.split()[1]) >= StrictVersion('4.0')) | 515 StrictVersion(version.split()[1]) >= StrictVersion('4.0')) |
516 xcode51 = re.match(r'^Xcode\s+5\.1\.', version) is not None | 516 xcode51 = re.match(r'^Xcode\s+5\.1', version) is not None |
517 else: | 517 else: |
518 # xcodebuild returns empty on OS X Lion with XCode 4.3 not | 518 # xcodebuild returns empty on OS X Lion with XCode 4.3 not |
519 # installed, but instead with only command-line tools. Assume | 519 # installed, but instead with only command-line tools. Assume |
520 # that only happens on >= Lion, thus no PPC support. | 520 # that only happens on >= Lion, thus no PPC support. |
521 xcode4 = True | 521 xcode4 = True |