summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--command/build_ext.py2
-rw-r--r--msvc9compiler.py4
-rw-r--r--msvccompiler.py2
-rw-r--r--tests/test_util.py7
-rw-r--r--util.py12
5 files changed, 4 insertions, 23 deletions
diff --git a/command/build_ext.py b/command/build_ext.py
index 9155626a..74445655 100644
--- a/command/build_ext.py
+++ b/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/msvc9compiler.py b/msvc9compiler.py
index c401ddc8..4c0036a0 100644
--- a/msvc9compiler.py
+++ b/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/msvccompiler.py b/msvccompiler.py
index 1048cd41..d1de2fbf 100644
--- a/msvccompiler.py
+++ b/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/tests/test_util.py b/tests/test_util.py
index 4e9d79b7..e2fc3809 100644
--- a/tests/test_util.py
+++ b/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/util.py b/util.py
index b8a69114..9394c1e0 100644
--- a/util.py
+++ b/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