[Python-checkins] r82132 - in python/branches/release26-maint: Lib/distutils/msvc9compiler.py Misc/NEWS
benjamin.peterson
python-checkins at python.org
Mon Jun 21 17:39:28 CEST 2010
Author: benjamin.peterson
Date: Mon Jun 21 17:39:28 2010
New Revision: 82132
Log:
Merged revisions 82130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82130 | benjamin.peterson | 2010-06-21 10:27:46 -0500 (Mon, 21 Jun 2010) | 1 line
fix finding visual studio 2008 on 64 bit #8854
........
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/distutils/msvc9compiler.py
python/branches/release26-maint/Misc/NEWS
Modified: python/branches/release26-maint/Lib/distutils/msvc9compiler.py
==============================================================================
--- python/branches/release26-maint/Lib/distutils/msvc9compiler.py (original)
+++ python/branches/release26-maint/Lib/distutils/msvc9compiler.py Mon Jun 21 17:39:28 2010
@@ -37,9 +37,18 @@
_winreg.HKEY_LOCAL_MACHINE,
_winreg.HKEY_CLASSES_ROOT)
-VS_BASE = r"Software\Microsoft\VisualStudio\%0.1f"
-WINSDK_BASE = r"Software\Microsoft\Microsoft SDKs\Windows"
-NET_BASE = r"Software\Microsoft\.NETFramework"
+NATIVE_WIN64 = (sys.platform == 'win32' and sys.maxsize > 2**32)
+if NATIVE_WIN64:
+ # Visual C++ is a 32-bit application, so we need to look in
+ # the corresponding registry branch, if we're running a
+ # 64-bit Python on Win64
+ VS_BASE = r"Software\Wow6432Node\Microsoft\VisualStudio\%0.1f"
+ WINSDK_BASE = r"Software\Wow6432Node\Microsoft\Microsoft SDKs\Windows"
+ NET_BASE = r"Software\Wow6432Node\Microsoft\.NETFramework"
+else:
+ VS_BASE = r"Software\Microsoft\VisualStudio\%0.1f"
+ WINSDK_BASE = r"Software\Microsoft\Microsoft SDKs\Windows"
+ NET_BASE = r"Software\Microsoft\.NETFramework"
# A map keyed by get_platform() return values to values accepted by
# 'vcvarsall.bat'. Note a cross-compile may combine these (eg, 'x86_amd64' is
Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS (original)
+++ python/branches/release26-maint/Misc/NEWS Mon Jun 21 17:39:28 2010
@@ -270,6 +270,8 @@
Build
-----
+- Issue #8854: Fix finding Visual Studio 2008 on Windows x64.
+
- Issue #3928: os.mknod() now available in Solaris, also.
- Issue #8175: --with-universal-archs=all works correctly on OSX 10.5
More information about the Python-checkins
mailing list