summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/msvccompiler.py
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2003-11-28 19:42:56 (GMT)
committerThomas Heller <theller@ctypes.org>2003-11-28 19:42:56 (GMT)
commitb3105911697d57098e9770078d89475f83274344 (patch)
tree7b12ff6cd615c33579d11cdef4db07a0821eacd0 /Lib/distutils/msvccompiler.py
parentac5d667e9f1b79b0d0ca6f5c8edd4f02feecd98f (diff)
downloadcpython-b3105911697d57098e9770078d89475f83274344.zip
cpython-b3105911697d57098e9770078d89475f83274344.tar.gz
cpython-b3105911697d57098e9770078d89475f83274344.tar.bz2
See SF #848614: distutils' msvccompiler now tries to detect that MSVC6
is installed but the registry settings are incomplete because the gui has never been run. Already backported to release23-maint.
Diffstat (limited to 'Lib/distutils/msvccompiler.py')
-rw-r--r--Lib/distutils/msvccompiler.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index 5f3d8de..27fb658 100644
--- a/Lib/distutils/msvccompiler.py
+++ b/Lib/distutils/msvccompiler.py
@@ -547,6 +547,16 @@ class MSVCCompiler (CCompiler) :
return string.split(self.__macros.sub(d[path]), ";")
else:
return string.split(d[path], ";")
+ # MSVC 6 seems to create the registry entries we need only when
+ # the GUI is run.
+ if self.__version == 6:
+ for base in HKEYS:
+ if read_values(base, r"%s\6.0" % self.__root) is not None:
+ self.warn("It seems you have Visual Studio 6 installed, "
+ "but the expected registry settings are not present.\n"
+ "You must at least run the Visual Studio GUI once "
+ "so that these entries are created.")
+ break
return []
def set_path_env_var(self, name):