diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2017-09-06 22:45:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 22:45:25 (GMT) |
commit | 49ce74efe845a8a91939ff3990a5f233262d3e1f (patch) | |
tree | 1a8cc8d4b43bdc3fe04d9fc4810a5830d14d43fe /Lib | |
parent | effc12f8e9e20d0951d2ba5883587666bd8218e3 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 2 | ||||
-rw-r--r-- | Lib/distutils/msvc9compiler.py | 4 | ||||
-rw-r--r-- | Lib/distutils/msvccompiler.py | 2 | ||||
-rw-r--r-- | Lib/distutils/tests/test_util.py | 7 | ||||
-rw-r--r-- | Lib/distutils/util.py | 12 | ||||
-rw-r--r-- | Lib/msilib/__init__.py | 8 | ||||
-rw-r--r-- | Lib/sysconfig.py | 12 | ||||
-rw-r--r-- | Lib/test/test_sysconfig.py | 7 |
8 files changed, 7 insertions, 47 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 9155626..7444565 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -208,7 +208,7 @@ class build_ext(Command): if self.plat_name == 'win32': suffix = 'win32' else: - # win-amd64 or win-ia64 + # win-amd64 suffix = self.plat_name[4:] new_lib = os.path.join(sys.exec_prefix, 'PCbuild') if suffix: diff --git a/Lib/distutils/msvc9compiler.py b/Lib/distutils/msvc9compiler.py index c401ddc..4c0036a 100644 --- a/Lib/distutils/msvc9compiler.py +++ b/Lib/distutils/msvc9compiler.py @@ -55,7 +55,6 @@ else: PLAT_TO_VCVARS = { 'win32' : 'x86', 'win-amd64' : 'amd64', - 'win-ia64' : 'ia64', } class Reg: @@ -344,7 +343,7 @@ class MSVCCompiler(CCompiler) : if plat_name is None: plat_name = get_platform() # sanity check for platforms to prevent obscure errors later. - ok_plats = 'win32', 'win-amd64', 'win-ia64' + ok_plats = 'win32', 'win-amd64' if plat_name not in ok_plats: raise DistutilsPlatformError("--plat-name must be one of %s" % (ok_plats,)) @@ -362,7 +361,6 @@ class MSVCCompiler(CCompiler) : # to cross compile, you use 'x86_amd64'. # On AMD64, 'vcvars32.bat amd64' is a native build env; to cross # compile use 'x86' (ie, it runs the x86 compiler directly) - # No idea how itanium handles this, if at all. if plat_name == get_platform() or plat_name == 'win32': # native build or cross-compile to win32 plat_spec = PLAT_TO_VCVARS[plat_name] diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 1048cd4..d1de2fb 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -172,7 +172,7 @@ def get_build_version(): def get_build_architecture(): """Return the processor architecture. - Possible results are "Intel", "Itanium", or "AMD64". + Possible results are "Intel" or "AMD64". """ prefix = " bit (" diff --git a/Lib/distutils/tests/test_util.py b/Lib/distutils/tests/test_util.py index 4e9d79b..e2fc380 100644 --- a/Lib/distutils/tests/test_util.py +++ b/Lib/distutils/tests/test_util.py @@ -78,13 +78,6 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase): sys.platform = 'win32' self.assertEqual(get_platform(), 'win-amd64') - # windows XP, itanium - os.name = 'nt' - sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) ' - '[MSC v.1310 32 bit (Itanium)]') - sys.platform = 'win32' - self.assertEqual(get_platform(), 'win-ia64') - # macbook os.name = 'posix' sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) ' 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 diff --git a/Lib/msilib/__init__.py b/Lib/msilib/__init__.py index f0370c2..7ab8bcc 100644 --- a/Lib/msilib/__init__.py +++ b/Lib/msilib/__init__.py @@ -8,8 +8,6 @@ import string import sys AMD64 = "AMD64" in sys.version -Itanium = "Itanium" in sys.version -Win64 = AMD64 or Itanium # Partially taken from Wine datasizemask= 0x00ff @@ -150,9 +148,7 @@ def init_database(name, schema, si.SetProperty(PID_TITLE, "Installation Database") si.SetProperty(PID_SUBJECT, ProductName) si.SetProperty(PID_AUTHOR, Manufacturer) - if Itanium: - si.SetProperty(PID_TEMPLATE, "Intel64;1033") - elif AMD64: + if AMD64: si.SetProperty(PID_TEMPLATE, "x64;1033") else: si.SetProperty(PID_TEMPLATE, "Intel;1033") @@ -272,7 +268,7 @@ class Directory: if component is None: component = self.logical self.component = component - if Win64: + if AMD64: flags |= 256 if keyfile: keyid = self.cab.gen_id(self.absolute, keyfile) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index fc3e03b..8dfe1a7 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -611,24 +611,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 if os.name != "posix" or not hasattr(os, 'uname'): diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 694435f..20252be 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -119,13 +119,6 @@ class TestSysConfig(unittest.TestCase): sys.platform = 'win32' self.assertEqual(get_platform(), 'win-amd64') - # windows XP, itanium - os.name = 'nt' - sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) ' - '[MSC v.1310 32 bit (Itanium)]') - sys.platform = 'win32' - self.assertEqual(get_platform(), 'win-ia64') - # macbook os.name = 'posix' sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) ' |