From: Ronald Oussoren Date: Sun, 11 Jul 2010 09:05:07 +0000 (+0000) Subject: Fix for issue 9164 X-Git-Tag: v3.2a1~231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3950527e7b51129accad96a9890ab99224e918a;p=thirdparty%2FPython%2Fcpython.git Fix for issue 9164 --- diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 50c81332aacd..28731dfdc166 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -660,8 +660,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] diff --git a/Misc/NEWS b/Misc/NEWS index debfb0cda8cb..b72e78a07e28 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -470,6 +470,8 @@ C-API Library ------- +- Issue #9164: Ensure that sysconfig handles duplicate -arch flags in CFLAGS + - Issue #7646: The fnmatch pattern cache no longer grows without bound. - Issue #9136: Fix 'dictionary changed size during iteration'