mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove all mention of Windows IA-64 support (GH-3389)
It was mostly removed long ago.
This commit is contained in:
parent
effc12f8e9
commit
49ce74efe8
13 changed files with 12 additions and 66 deletions
|
@ -814,13 +814,13 @@ This module provides the :class:`UnixCCompiler` class, a subclass of
|
||||||
.. module:: distutils.msvccompiler
|
.. module:: distutils.msvccompiler
|
||||||
:synopsis: Microsoft Compiler
|
:synopsis: Microsoft Compiler
|
||||||
|
|
||||||
|
.. XXX: This is *waaaaay* out of date!
|
||||||
|
|
||||||
This module provides :class:`MSVCCompiler`, an implementation of the abstract
|
This module provides :class:`MSVCCompiler`, an implementation of the abstract
|
||||||
:class:`CCompiler` class for Microsoft Visual Studio. Typically, extension
|
:class:`CCompiler` class for Microsoft Visual Studio. Typically, extension
|
||||||
modules need to be compiled with the same compiler that was used to compile
|
modules need to be compiled with the same compiler that was used to compile
|
||||||
Python. For Python 2.3 and earlier, the compiler was Visual Studio 6. For Python
|
Python. For Python 2.3 and earlier, the compiler was Visual Studio 6. For Python
|
||||||
2.4 and 2.5, the compiler is Visual Studio .NET 2003. The AMD64 and Itanium
|
2.4 and 2.5, the compiler is Visual Studio .NET 2003.
|
||||||
binaries are created using the Platform SDK.
|
|
||||||
|
|
||||||
:class:`MSVCCompiler` will normally choose the right compiler, linker etc. on
|
:class:`MSVCCompiler` will normally choose the right compiler, linker etc. on
|
||||||
its own. To override this choice, the environment variables *DISTUTILS_USE_SDK*
|
its own. To override this choice, the environment variables *DISTUTILS_USE_SDK*
|
||||||
|
|
|
@ -351,8 +351,8 @@ installed, you can use a 32bit version of Windows to create 64bit extensions
|
||||||
and vice-versa.
|
and vice-versa.
|
||||||
|
|
||||||
To build for an alternate platform, specify the :option:`!--plat-name` option
|
To build for an alternate platform, specify the :option:`!--plat-name` option
|
||||||
to the build command. Valid values are currently 'win32', 'win-amd64' and
|
to the build command. Valid values are currently 'win32', and 'win-amd64'.
|
||||||
'win-ia64'. For example, on a 32bit version of Windows, you could execute::
|
For example, on a 32bit version of Windows, you could execute::
|
||||||
|
|
||||||
python setup.py build --plat-name=win-amd64
|
python setup.py build --plat-name=win-amd64
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,6 @@ Other functions
|
||||||
Windows will return one of:
|
Windows will return one of:
|
||||||
|
|
||||||
- win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
|
- 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)
|
- win32 (all others - specifically, sys.platform is returned)
|
||||||
|
|
||||||
Mac OS X can return:
|
Mac OS X can return:
|
||||||
|
|
|
@ -208,7 +208,7 @@ class build_ext(Command):
|
||||||
if self.plat_name == 'win32':
|
if self.plat_name == 'win32':
|
||||||
suffix = 'win32'
|
suffix = 'win32'
|
||||||
else:
|
else:
|
||||||
# win-amd64 or win-ia64
|
# win-amd64
|
||||||
suffix = self.plat_name[4:]
|
suffix = self.plat_name[4:]
|
||||||
new_lib = os.path.join(sys.exec_prefix, 'PCbuild')
|
new_lib = os.path.join(sys.exec_prefix, 'PCbuild')
|
||||||
if suffix:
|
if suffix:
|
||||||
|
|
|
@ -55,7 +55,6 @@ else:
|
||||||
PLAT_TO_VCVARS = {
|
PLAT_TO_VCVARS = {
|
||||||
'win32' : 'x86',
|
'win32' : 'x86',
|
||||||
'win-amd64' : 'amd64',
|
'win-amd64' : 'amd64',
|
||||||
'win-ia64' : 'ia64',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class Reg:
|
class Reg:
|
||||||
|
@ -344,7 +343,7 @@ class MSVCCompiler(CCompiler) :
|
||||||
if plat_name is None:
|
if plat_name is None:
|
||||||
plat_name = get_platform()
|
plat_name = get_platform()
|
||||||
# sanity check for platforms to prevent obscure errors later.
|
# 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:
|
if plat_name not in ok_plats:
|
||||||
raise DistutilsPlatformError("--plat-name must be one of %s" %
|
raise DistutilsPlatformError("--plat-name must be one of %s" %
|
||||||
(ok_plats,))
|
(ok_plats,))
|
||||||
|
@ -362,7 +361,6 @@ class MSVCCompiler(CCompiler) :
|
||||||
# to cross compile, you use 'x86_amd64'.
|
# to cross compile, you use 'x86_amd64'.
|
||||||
# On AMD64, 'vcvars32.bat amd64' is a native build env; to cross
|
# On AMD64, 'vcvars32.bat amd64' is a native build env; to cross
|
||||||
# compile use 'x86' (ie, it runs the x86 compiler directly)
|
# 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':
|
if plat_name == get_platform() or plat_name == 'win32':
|
||||||
# native build or cross-compile to win32
|
# native build or cross-compile to win32
|
||||||
plat_spec = PLAT_TO_VCVARS[plat_name]
|
plat_spec = PLAT_TO_VCVARS[plat_name]
|
||||||
|
|
|
@ -172,7 +172,7 @@ def get_build_version():
|
||||||
def get_build_architecture():
|
def get_build_architecture():
|
||||||
"""Return the processor architecture.
|
"""Return the processor architecture.
|
||||||
|
|
||||||
Possible results are "Intel", "Itanium", or "AMD64".
|
Possible results are "Intel" or "AMD64".
|
||||||
"""
|
"""
|
||||||
|
|
||||||
prefix = " bit ("
|
prefix = " bit ("
|
||||||
|
|
|
@ -78,13 +78,6 @@ class UtilTestCase(support.EnvironGuard, unittest.TestCase):
|
||||||
sys.platform = 'win32'
|
sys.platform = 'win32'
|
||||||
self.assertEqual(get_platform(), 'win-amd64')
|
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
|
# macbook
|
||||||
os.name = 'posix'
|
os.name = 'posix'
|
||||||
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '
|
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '
|
||||||
|
|
|
@ -30,24 +30,14 @@ def get_platform ():
|
||||||
|
|
||||||
Windows will return one of:
|
Windows will return one of:
|
||||||
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
|
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)
|
win32 (all others - specifically, sys.platform is returned)
|
||||||
|
|
||||||
For other non-POSIX platforms, currently just returns 'sys.platform'.
|
For other non-POSIX platforms, currently just returns 'sys.platform'.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
# sniff sys.version for architecture.
|
if 'amd64' in sys.version.lower():
|
||||||
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':
|
|
||||||
return 'win-amd64'
|
return 'win-amd64'
|
||||||
if look == 'itanium':
|
|
||||||
return 'win-ia64'
|
|
||||||
return sys.platform
|
return sys.platform
|
||||||
|
|
||||||
# Set for cross builds explicitly
|
# Set for cross builds explicitly
|
||||||
|
|
|
@ -8,8 +8,6 @@ import string
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
AMD64 = "AMD64" in sys.version
|
AMD64 = "AMD64" in sys.version
|
||||||
Itanium = "Itanium" in sys.version
|
|
||||||
Win64 = AMD64 or Itanium
|
|
||||||
|
|
||||||
# Partially taken from Wine
|
# Partially taken from Wine
|
||||||
datasizemask= 0x00ff
|
datasizemask= 0x00ff
|
||||||
|
@ -150,9 +148,7 @@ def init_database(name, schema,
|
||||||
si.SetProperty(PID_TITLE, "Installation Database")
|
si.SetProperty(PID_TITLE, "Installation Database")
|
||||||
si.SetProperty(PID_SUBJECT, ProductName)
|
si.SetProperty(PID_SUBJECT, ProductName)
|
||||||
si.SetProperty(PID_AUTHOR, Manufacturer)
|
si.SetProperty(PID_AUTHOR, Manufacturer)
|
||||||
if Itanium:
|
if AMD64:
|
||||||
si.SetProperty(PID_TEMPLATE, "Intel64;1033")
|
|
||||||
elif AMD64:
|
|
||||||
si.SetProperty(PID_TEMPLATE, "x64;1033")
|
si.SetProperty(PID_TEMPLATE, "x64;1033")
|
||||||
else:
|
else:
|
||||||
si.SetProperty(PID_TEMPLATE, "Intel;1033")
|
si.SetProperty(PID_TEMPLATE, "Intel;1033")
|
||||||
|
@ -272,7 +268,7 @@ class Directory:
|
||||||
if component is None:
|
if component is None:
|
||||||
component = self.logical
|
component = self.logical
|
||||||
self.component = component
|
self.component = component
|
||||||
if Win64:
|
if AMD64:
|
||||||
flags |= 256
|
flags |= 256
|
||||||
if keyfile:
|
if keyfile:
|
||||||
keyid = self.cab.gen_id(self.absolute, keyfile)
|
keyid = self.cab.gen_id(self.absolute, keyfile)
|
||||||
|
|
|
@ -611,24 +611,14 @@ def get_platform():
|
||||||
|
|
||||||
Windows will return one of:
|
Windows will return one of:
|
||||||
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
|
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)
|
win32 (all others - specifically, sys.platform is returned)
|
||||||
|
|
||||||
For other non-POSIX platforms, currently just returns 'sys.platform'.
|
For other non-POSIX platforms, currently just returns 'sys.platform'.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
# sniff sys.version for architecture.
|
if 'amd64' in sys.version.lower():
|
||||||
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':
|
|
||||||
return 'win-amd64'
|
return 'win-amd64'
|
||||||
if look == 'itanium':
|
|
||||||
return 'win-ia64'
|
|
||||||
return sys.platform
|
return sys.platform
|
||||||
|
|
||||||
if os.name != "posix" or not hasattr(os, 'uname'):
|
if os.name != "posix" or not hasattr(os, 'uname'):
|
||||||
|
|
|
@ -119,13 +119,6 @@ class TestSysConfig(unittest.TestCase):
|
||||||
sys.platform = 'win32'
|
sys.platform = 'win32'
|
||||||
self.assertEqual(get_platform(), 'win-amd64')
|
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
|
# macbook
|
||||||
os.name = 'posix'
|
os.name = 'posix'
|
||||||
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '
|
sys.version = ('2.5 (r25:51918, Sep 19 2006, 08:49:13) '
|
||||||
|
|
|
@ -6,9 +6,7 @@
|
||||||
#include "Python.h"
|
#include "Python.h"
|
||||||
|
|
||||||
extern PyObject* PyInit_array(void);
|
extern PyObject* PyInit_array(void);
|
||||||
#ifndef MS_WINI64
|
|
||||||
extern PyObject* PyInit_audioop(void);
|
extern PyObject* PyInit_audioop(void);
|
||||||
#endif
|
|
||||||
extern PyObject* PyInit_binascii(void);
|
extern PyObject* PyInit_binascii(void);
|
||||||
extern PyObject* PyInit_cmath(void);
|
extern PyObject* PyInit_cmath(void);
|
||||||
extern PyObject* PyInit_errno(void);
|
extern PyObject* PyInit_errno(void);
|
||||||
|
@ -80,11 +78,7 @@ struct _inittab _PyImport_Inittab[] = {
|
||||||
|
|
||||||
{"array", PyInit_array},
|
{"array", PyInit_array},
|
||||||
{"_ast", PyInit__ast},
|
{"_ast", PyInit__ast},
|
||||||
#ifdef MS_WINDOWS
|
|
||||||
#ifndef MS_WINI64
|
|
||||||
{"audioop", PyInit_audioop},
|
{"audioop", PyInit_audioop},
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
{"binascii", PyInit_binascii},
|
{"binascii", PyInit_binascii},
|
||||||
{"cmath", PyInit_cmath},
|
{"cmath", PyInit_cmath},
|
||||||
{"errno", PyInit_errno},
|
{"errno", PyInit_errno},
|
||||||
|
|
|
@ -112,8 +112,6 @@ WIN32 is still required for the locale module.
|
||||||
defined on Win32 *and* Win64. Win32 only code must therefore be
|
defined on Win32 *and* Win64. Win32 only code must therefore be
|
||||||
guarded as follows:
|
guarded as follows:
|
||||||
#if defined(MS_WIN32) && !defined(MS_WIN64)
|
#if defined(MS_WIN32) && !defined(MS_WIN64)
|
||||||
Some modules are disabled on Itanium processors, therefore we
|
|
||||||
have MS_WINI64 set for those targets, otherwise MS_WINX64
|
|
||||||
*/
|
*/
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
#define MS_WIN64
|
#define MS_WIN64
|
||||||
|
@ -121,17 +119,12 @@ WIN32 is still required for the locale module.
|
||||||
|
|
||||||
/* set the COMPILER */
|
/* set the COMPILER */
|
||||||
#ifdef MS_WIN64
|
#ifdef MS_WIN64
|
||||||
#if defined(_M_IA64)
|
#if defined(_M_X64) || defined(_M_AMD64)
|
||||||
#define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
|
|
||||||
#define MS_WINI64
|
|
||||||
#define PYD_PLATFORM_TAG "win_ia64"
|
|
||||||
#elif defined(_M_X64) || defined(_M_AMD64)
|
|
||||||
#if defined(__INTEL_COMPILER)
|
#if defined(__INTEL_COMPILER)
|
||||||
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
|
#define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
|
||||||
#else
|
#else
|
||||||
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
|
#define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
|
||||||
#endif /* __INTEL_COMPILER */
|
#endif /* __INTEL_COMPILER */
|
||||||
#define MS_WINX64
|
|
||||||
#define PYD_PLATFORM_TAG "win_amd64"
|
#define PYD_PLATFORM_TAG "win_amd64"
|
||||||
#else
|
#else
|
||||||
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
|
#define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue