]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix for issue 9164
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 11 Jul 2010 09:05:07 +0000 (09:05 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 11 Jul 2010 09:05:07 +0000 (09:05 +0000)
Lib/sysconfig.py
Misc/NEWS

index 50c81332aacd06e75f731f015e09cb9bedf42531..28731dfdc1660243157aa0a20d4448e602d4d969 100644 (file)
@@ -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]
index debfb0cda8cbf7f7ee3adc0c4ce1cb5380b4efd4..b72e78a07e2838de43c0a9c4923233d88d8a67ff 100644 (file)
--- 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'