diff options
| author | Zachary Ware <zachary.ware@gmail.com> | 2017-09-06 15:45:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-06 15:45:25 -0700 |
| commit | 3a5968943a1722688994990326d2009210179e9d (patch) | |
| tree | bd50e09620c8966d934c7cff563ab8fc0766c3b4 /util.py | |
| parent | 91a97f1145f3d78667b162907af985b8d6fcc61a (diff) | |
| download | python-setuptools-git-3a5968943a1722688994990326d2009210179e9d.tar.gz | |
Remove all mention of Windows IA-64 support (GH-3389)
It was mostly removed long ago.
Diffstat (limited to 'util.py')
| -rw-r--r-- | util.py | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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 |
