[Python-checkins] r82796 - in python/branches/py3k: Lib/sysconfig.py Misc/NEWS

ronald.oussoren python-checkins at python.org
Sun Jul 11 11:05:07 CEST 2010


Author: ronald.oussoren
Date: Sun Jul 11 11:05:07 2010
New Revision: 82796

Log:
Fix for issue 9164


Modified:
   python/branches/py3k/Lib/sysconfig.py
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Lib/sysconfig.py
==============================================================================
--- python/branches/py3k/Lib/sysconfig.py	(original)
+++ python/branches/py3k/Lib/sysconfig.py	Sun Jul 11 11:05:07 2010
@@ -660,8 +660,7 @@
                 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]

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sun Jul 11 11:05:07 2010
@@ -470,6 +470,8 @@
 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'


More information about the Python-checkins mailing list