summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-09-06 22:45:25 (GMT)
committerGitHub <noreply@github.com>2017-09-06 22:45:25 (GMT)
commit49ce74efe845a8a91939ff3990a5f233262d3e1f (patch)
tree1a8cc8d4b43bdc3fe04d9fc4810a5830d14d43fe /Lib/distutils/util.py
parenteffc12f8e9e20d0951d2ba5883587666bd8218e3 (diff)
downloadcpython-49ce74efe845a8a91939ff3990a5f233262d3e1f.zip
cpython-49ce74efe845a8a91939ff3990a5f233262d3e1f.tar.gz
cpython-49ce74efe845a8a91939ff3990a5f233262d3e1f.tar.bz2
Remove all mention of Windows IA-64 support (GH-3389)
It was mostly removed long ago.
Diffstat (limited to 'Lib/distutils/util.py')
-rw-r--r--Lib/distutils/util.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
index b8a6911..9394c1e 100644
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -30,24 +30,14 @@ def get_platform ():
Windows will return one of:
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
- win-ia64 (64bit Windows on Itanium)
win32 (all others - specifically, sys.platform is returned)
For other non-POSIX platforms, currently just returns 'sys.platform'.
"""
if os.name == 'nt':
- # sniff sys.version for architecture.
- prefix = " bit ("
- i = sys.version.find(prefix)
- if i == -1:
- return sys.platform
- j = sys.version.find(")", i)
- look = sys.version[i+len(prefix):j].lower()
- if look == 'amd64':
+ if 'amd64' in sys.version.lower():
return 'win-amd64'
- if look == 'itanium':
- return 'win-ia64'
return sys.platform
# Set for cross builds explicitly