Fix for issue #9164: with this patch sysconfig and distuls don't break
when duplicate '-arch foo' flags end up in CFLAGS (which may happen when building a universal build using macports)
This commit is contained in:
parent
e940c5d7df
commit
7595620105
|
@ -144,8 +144,7 @@ def get_platform ():
|
||||||
cflags = get_config_vars().get('CFLAGS')
|
cflags = get_config_vars().get('CFLAGS')
|
||||||
|
|
||||||
archs = re.findall('-arch\s+(\S+)', cflags)
|
archs = re.findall('-arch\s+(\S+)', cflags)
|
||||||
archs.sort()
|
archs = tuple(sorted(set(archs)))
|
||||||
archs = tuple(archs)
|
|
||||||
|
|
||||||
if len(archs) == 1:
|
if len(archs) == 1:
|
||||||
machine = archs[0]
|
machine = archs[0]
|
||||||
|
|
|
@ -645,8 +645,7 @@ def get_platform():
|
||||||
cflags = get_config_vars().get('CFLAGS')
|
cflags = get_config_vars().get('CFLAGS')
|
||||||
|
|
||||||
archs = re.findall('-arch\s+(\S+)', cflags)
|
archs = re.findall('-arch\s+(\S+)', cflags)
|
||||||
archs.sort()
|
archs = tuple(sorted(set(archs)))
|
||||||
archs = tuple(archs)
|
|
||||||
|
|
||||||
if len(archs) == 1:
|
if len(archs) == 1:
|
||||||
machine = archs[0]
|
machine = archs[0]
|
||||||
|
|
|
@ -33,6 +33,8 @@ Library
|
||||||
|
|
||||||
- Issue #9128: Fix validation of class decorators in parser module.
|
- Issue #9128: Fix validation of class decorators in parser module.
|
||||||
|
|
||||||
|
- Issue #9164: Ensure sysconfig handles dupblice archs while building on OSX
|
||||||
|
|
||||||
Extension Modules
|
Extension Modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue