Show More
@@ -373,6 +373,15 b" if os.name == 'nt':" | |||
|
373 | 373 | # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535 |
|
374 | 374 | setupversion = version.split('+', 1)[0] |
|
375 | 375 | |
|
376 | if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'): | |
|
377 | # XCode 4.0 dropped support for ppc architecture, which is hardcoded in | |
|
378 | # distutils.sysconfig | |
|
379 | version = runcmd(['/usr/bin/xcodebuild', '-version'], {}).splitlines()[0] | |
|
380 | # Also parse only first digit, because 3.2.1 can't be parsed nicely | |
|
381 | if (version.startswith('Xcode') and | |
|
382 | int(version.split()[1].split('.')[0]) >= 4): | |
|
383 | os.environ['ARCHFLAGS'] = '-arch i386 -arch x86_64' | |
|
384 | ||
|
376 | 385 | setup(name='mercurial', |
|
377 | 386 | version=setupversion, |
|
378 | 387 | author='Matt Mackall', |
General Comments 0
You need to be logged in to leave comments.
Login now