diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 09:29:09 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 09:29:09 (GMT) |
commit | 725443fef975a6de661b38c358c33c08e22caec5 (patch) | |
tree | 5ef50e6a63a13291ae37e7c991db1b2e3da89d8f /Lib/distutils/util.py | |
parent | 5fd8785567752e5739a6dd47bc5d7426d00d2a51 (diff) | |
download | cpython-725443fef975a6de661b38c358c33c08e22caec5.zip cpython-725443fef975a6de661b38c358c33c08e22caec5.tar.gz cpython-725443fef975a6de661b38c358c33c08e22caec5.tar.bz2 |
Fix for issue 9164
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r-- | Lib/distutils/util.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 9a77561..8175434 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] |