]> granicus.if.org Git - python/commitdiff
Fix for issue 9164
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 11 Jul 2010 09:29:09 +0000 (09:29 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 11 Jul 2010 09:29:09 +0000 (09:29 +0000)
Lib/distutils/util.py

index 9a77561fff87693b64c15b18e199b00cfb2fe619..8175434586df387bef70022e489abb7c83c630bd 100644 (file)
@@ -143,8 +143,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]