setup.py
changeset 21558 8b482d49563b
parent 21229 54d7657d7d1e
child 21840 0c88185c7d6c
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