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:
Ronald Oussoren 2010-07-11 08:52:52 +00:00
parent e940c5d7df
commit 7595620105
3 changed files with 4 additions and 4 deletions

View file

@ -144,8 +144,7 @@ def get_platform ():
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]