setup.py
changeset 48838 cd3e25adcf84
parent 48837 12cba4886e90
child 48842 649ff7f86f96
equal deleted inserted replaced
48837:12cba4886e90 48838:cd3e25adcf84
  1661     setupversion = setupversion.split(r'+', 1)[0]
  1661     setupversion = setupversion.split(r'+', 1)[0]
  1662 
  1662 
  1663 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
  1663 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
  1664     version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[1].splitlines()
  1664     version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[1].splitlines()
  1665     if version:
  1665     if version:
  1666         version = version[0]
  1666         version = version[0].decode('utf-8')
  1667         if sys.version_info[0] == 3:
       
  1668             version = version.decode('utf-8')
       
  1669         xcode4 = version.startswith('Xcode') and StrictVersion(
  1667         xcode4 = version.startswith('Xcode') and StrictVersion(
  1670             version.split()[1]
  1668             version.split()[1]
  1671         ) >= StrictVersion('4.0')
  1669         ) >= StrictVersion('4.0')
  1672         xcode51 = re.match(r'^Xcode\s+5\.1', version) is not None
  1670         xcode51 = re.match(r'^Xcode\s+5\.1', version) is not None
  1673     else:
  1671     else: