when duplicate '-arch foo' flags end up in CFLAGS (which may happen when
building a universal build using macports)
cflags = get_config_vars().get('CFLAGS')
archs = re.findall('-arch\s+(\S+)', cflags)
- archs.sort()
- archs = tuple(archs)
+ archs = tuple(sorted(set(archs)))
if len(archs) == 1:
machine = archs[0]
cflags = get_config_vars().get('CFLAGS')
archs = re.findall('-arch\s+(\S+)', cflags)
- archs.sort()
- archs = tuple(archs)
+ archs = tuple(sorted(set(archs)))
if len(archs) == 1:
machine = archs[0]
- Issue #9128: Fix validation of class decorators in parser module.
+- Issue #9164: Ensure sysconfig handles dupblice archs while building on OSX
+
Extension Modules
-----------------