From: Ronald Oussoren Date: Sun, 11 Jul 2010 09:29:09 +0000 (+0000) Subject: Fix for issue 9164 X-Git-Tag: v3.1.3rc1~524 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=725443fef975a6de661b38c358c33c08e22caec5;p=python Fix for issue 9164 --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 9a77561fff..8175434586 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -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]