Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49ce74e

Browse files
authored
Remove all mention of Windows IA-64 support (GH-3389)
It was mostly removed long ago.
1 parent effc12f commit 49ce74e

13 files changed

Lines changed: 12 additions & 66 deletions

File tree

Doc/distutils/apiref.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,13 +814,13 @@ This module provides the :class:`UnixCCompiler` class, a subclass of
814814
.. module:: distutils.msvccompiler
815815
:synopsis: Microsoft Compiler
816816

817+
.. XXX: This is *waaaaay* out of date!
817818
818819
This module provides :class:`MSVCCompiler`, an implementation of the abstract
819820
:class:`CCompiler` class for Microsoft Visual Studio. Typically, extension
820821
modules need to be compiled with the same compiler that was used to compile
821822
Python. For Python 2.3 and earlier, the compiler was Visual Studio 6. For Python
822-
2.4 and 2.5, the compiler is Visual Studio .NET 2003. The AMD64 and Itanium
823-
binaries are created using the Platform SDK.
823+
2.4 and 2.5, the compiler is Visual Studio .NET 2003.
824824

825825
:class:`MSVCCompiler` will normally choose the right compiler, linker etc. on
826826
its own. To override this choice, the environment variables *DISTUTILS_USE_SDK*

Doc/distutils/builtdist.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ installed, you can use a 32bit version of Windows to create 64bit extensions
351351
and vice-versa.
352352

353353
To build for an alternate platform, specify the :option:`!--plat-name` option
354-
to the build command. Valid values are currently 'win32', 'win-amd64' and
355-
'win-ia64'. For example, on a 32bit version of Windows, you could execute::
354+
to the build command. Valid values are currently 'win32', and 'win-amd64'.
355+
For example, on a 32bit version of Windows, you could execute::
356356

357357
python setup.py build --plat-name=win-amd64
358358

Doc/library/sysconfig.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ Other functions
186186
Windows will return one of:
187187

188188
- win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
189-
- win-ia64 (64bit Windows on Itanium)
190189
- win32 (all others - specifically, sys.platform is returned)
191190

192191
Mac OS X can return:

Lib/distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def finalize_options(self):
208208
if self.plat_name == 'win32':
209209
suffix = 'win32'
210210
else:
211-
# win-amd64 or win-ia64
211+
# win-amd64
212212
suffix = self.plat_name[4:]
213213
new_lib = os.path.join(sys.exec_prefix, 'PCbuild')
214214
if suffix:

Lib/distutils/msvc9compiler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
PLAT_TO_VCVARS = {
5656
'win32' : 'x86',
5757
'win-amd64' : 'amd64',
58-
'win-ia64' : 'ia64',
5958
}
6059

6160
class Reg:
@@ -344,7 +343,7 @@ def initialize(self, plat_name=None):
344343
if plat_name is None:
345344
plat_name = get_platform()
346345
# sanity check for platforms to prevent obscure errors later.
347-
ok_plats = 'win32', 'win-amd64', 'win-ia64'
346+
ok_plats = 'win32', 'win-amd64'
348347
if plat_name not in ok_plats:
349348
raise DistutilsPlatformError("--plat-name must be one of %s" %
350349
(ok_plats,))
@@ -362,7 +361,6 @@ def initialize(self, plat_name=None):
362361
# to cross compile, you use 'x86_amd64'.
363362
# On AMD64, 'vcvars32.bat amd64' is a native build env; to cross
364363
# compile use 'x86' (ie, it runs the x86 compiler directly)
365-
# No idea how itanium handles this, if at all.
366364
if plat_name == get_platform() or plat_name == 'win32':
367365
# native build or cross-compile to win32
368366
plat_spec = PLAT_TO_VCVARS[plat_name]

Lib/distutils/msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def get_build_version():
172172
def get_build_architecture():
173173
"""Return the processor architecture.
174174
175-
Possible results are "Intel", "Itanium", or "AMD64".
175+
Possible results are "Intel" or "AMD64".
176176
"""
177177

178178
prefix = " bit ("

Lib/distutils/tests/test_util.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,6 @@ def test_get_platform(self):
7878
sys.platform = 'win32'
7979
self.assertEqual(get_platform(), 'win-amd64')
8080

81-
# windows XP, itanium
82-
os.name = 'nt'
83-
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
84-
'[MSC v.1310 32 bit (Itanium)]')
85-
sys.platform = 'win32'
86-
self.assertEqual(get_platform(), 'win-ia64')
87-
8881
# macbook
8982
os.name = 'posix'
9083
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '

Lib/distutils/util.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,14 @@ def get_platform ():
3030
3131
Windows will return one of:
3232
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
33-
win-ia64 (64bit Windows on Itanium)
3433
win32 (all others - specifically, sys.platform is returned)
3534
3635
For other non-POSIX platforms, currently just returns 'sys.platform'.
3736
3837
"""
3938
if os.name == 'nt':
40-
# sniff sys.version for architecture.
41-
prefix = " bit ("
42-
i = sys.version.find(prefix)
43-
if i == -1:
44-
return sys.platform
45-
j = sys.version.find(")", i)
46-
look = sys.version[i+len(prefix):j].lower()
47-
if look == 'amd64':
39+
if 'amd64' in sys.version.lower():
4840
return 'win-amd64'
49-
if look == 'itanium':
50-
return 'win-ia64'
5141
return sys.platform
5242

5343
# Set for cross builds explicitly

Lib/msilib/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import sys
99

1010
AMD64 = "AMD64" in sys.version
11-
Itanium = "Itanium" in sys.version
12-
Win64 = AMD64 or Itanium
1311

1412
# Partially taken from Wine
1513
datasizemask= 0x00ff
@@ -150,9 +148,7 @@ def init_database(name, schema,
150148
si.SetProperty(PID_TITLE, "Installation Database")
151149
si.SetProperty(PID_SUBJECT, ProductName)
152150
si.SetProperty(PID_AUTHOR, Manufacturer)
153-
if Itanium:
154-
si.SetProperty(PID_TEMPLATE, "Intel64;1033")
155-
elif AMD64:
151+
if AMD64:
156152
si.SetProperty(PID_TEMPLATE, "x64;1033")
157153
else:
158154
si.SetProperty(PID_TEMPLATE, "Intel;1033")
@@ -272,7 +268,7 @@ def start_component(self, component = None, feature = None, flags = None, keyfil
272268
if component is None:
273269
component = self.logical
274270
self.component = component
275-
if Win64:
271+
if AMD64:
276272
flags |= 256
277273
if keyfile:
278274
keyid = self.cab.gen_id(self.absolute, keyfile)

Lib/sysconfig.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -611,24 +611,14 @@ def get_platform():
611611
612612
Windows will return one of:
613613
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
614-
win-ia64 (64bit Windows on Itanium)
615614
win32 (all others - specifically, sys.platform is returned)
616615
617616
For other non-POSIX platforms, currently just returns 'sys.platform'.
618617
619618
"""
620619
if os.name == 'nt':
621-
# sniff sys.version for architecture.
622-
prefix = " bit ("
623-
i = sys.version.find(prefix)
624-
if i == -1:
625-
return sys.platform
626-
j = sys.version.find(")", i)
627-
look = sys.version[i+len(prefix):j].lower()
628-
if look == 'amd64':
620+
if 'amd64' in sys.version.lower():
629621
return 'win-amd64'
630-
if look == 'itanium':
631-
return 'win-ia64'
632622
return sys.platform
633623

634624
if os.name != "posix" or not hasattr(os, 'uname'):

0 commit comments

Comments
 (0)