setup.py
changeset 33119 176030f695ca
parent 33117 6ef5f0c95d64
child 33587 e0bbe32d8b55
equal deleted inserted replaced
33118:cc9501fa5574 33119:176030f695ca
   812     # Windows binary file versions for exe/dll files must have the
   812     # Windows binary file versions for exe/dll files must have the
   813     # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
   813     # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
   814     setupversion = version.split('+', 1)[0]
   814     setupversion = version.split('+', 1)[0]
   815 
   815 
   816 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
   816 if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
   817     version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines()
   817     version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[1].splitlines()
   818     if version:
   818     if version:
   819         version = version[0]
   819         version = version[0]
   820         if sys.version_info[0] == 3:
   820         if sys.version_info[0] == 3:
   821             version = version.decode('utf-8')
   821             version = version.decode('utf-8')
   822         xcode4 = (version.startswith('Xcode') and
   822         xcode4 = (version.startswith('Xcode') and