diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 08:52:52 +0000 |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-07-11 08:52:52 +0000 |
commit | 7595620105bbdea61541fb24d8bc9dca4c9bb235 (patch) | |
tree | bc69d441004129809d3a32aa900321339db8ab57 /Lib/sysconfig.py | |
parent | e940c5d7df3be2ea63086f160b0c259b673749bf (diff) | |
download | cpython-git-7595620105bbdea61541fb24d8bc9dca4c9bb235.tar.gz |
Fix for issue #9164: with this patch sysconfig and distuls don't break
when duplicate '-arch foo' flags end up in CFLAGS (which may happen when
building a universal build using macports)
Diffstat (limited to 'Lib/sysconfig.py')
-rw-r--r-- | Lib/sysconfig.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index bbe331e02d..4559cd712a 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -645,8 +645,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] |