Skip to content

Commit 49ce74e

Browse files
authoredSep 6, 2017
Remove all mention of Windows IA-64 support (pythonGH-3389)
It was mostly removed long ago.
1 parent effc12f commit 49ce74e

13 files changed

+12
-66
lines changed
 

‎Doc/distutils/apiref.rst

+2-2
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

+2-2
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

-1
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

+1-1
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

+1-3
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

+1-1
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

-7
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

+1-11
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

+2-6
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

+1-11
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'):

‎Lib/test/test_sysconfig.py

-7
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,6 @@ def test_get_platform(self):
119119
sys.platform = 'win32'
120120
self.assertEqual(get_platform(), 'win-amd64')
121121

122-
# windows XP, itanium
123-
os.name = 'nt'
124-
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
125-
'[MSC v.1310 32 bit (Itanium)]')
126-
sys.platform = 'win32'
127-
self.assertEqual(get_platform(), 'win-ia64')
128-
129122
# macbook
130123
os.name = 'posix'
131124
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '

‎PC/config.c

-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
#include "Python.h"
77

88
extern PyObject* PyInit_array(void);
9-
#ifndef MS_WINI64
109
extern PyObject* PyInit_audioop(void);
11-
#endif
1210
extern PyObject* PyInit_binascii(void);
1311
extern PyObject* PyInit_cmath(void);
1412
extern PyObject* PyInit_errno(void);
@@ -80,11 +78,7 @@ struct _inittab _PyImport_Inittab[] = {
8078

8179
{"array", PyInit_array},
8280
{"_ast", PyInit__ast},
83-
#ifdef MS_WINDOWS
84-
#ifndef MS_WINI64
8581
{"audioop", PyInit_audioop},
86-
#endif
87-
#endif
8882
{"binascii", PyInit_binascii},
8983
{"cmath", PyInit_cmath},
9084
{"errno", PyInit_errno},

‎PC/pyconfig.h

+1-8
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,19 @@ WIN32 is still required for the locale module.
112112
defined on Win32 *and* Win64. Win32 only code must therefore be
113113
guarded as follows:
114114
#if defined(MS_WIN32) && !defined(MS_WIN64)
115-
Some modules are disabled on Itanium processors, therefore we
116-
have MS_WINI64 set for those targets, otherwise MS_WINX64
117115
*/
118116
#ifdef _WIN64
119117
#define MS_WIN64
120118
#endif
121119

122120
/* set the COMPILER */
123121
#ifdef MS_WIN64
124-
#if defined(_M_IA64)
125-
#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
126-
#define MS_WINI64
127-
#define PYD_PLATFORM_TAG "win_ia64"
128-
#elif defined(_M_X64) || defined(_M_AMD64)
122+
#if defined(_M_X64) || defined(_M_AMD64)
129123
#if defined(__INTEL_COMPILER)
130124
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
131125
#else
132126
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
133127
#endif /* __INTEL_COMPILER */
134-
#define MS_WINX64
135128
#define PYD_PLATFORM_TAG "win_amd64"
136129
#else
137130
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")

0 commit comments

Comments
 (0)