Index: Lib/distutils/msvccompiler.py =================================================================== --- Lib/distutils/msvccompiler.py (revision 58978) +++ Lib/distutils/msvccompiler.py (working copy) @@ -262,6 +262,7 @@ self.mc = "mc.exe" else: self.__paths = self.get_msvc_paths("path") + print self.__paths if len (self.__paths) == 0: raise DistutilsPlatformError, \ @@ -610,6 +611,18 @@ if not _can_read_reg: return [] + path = path.upper() + if self.__version == 8: + if path == "PATH": + return string.split(os.environ["PATH"], ";") + elif path == "LIBRARY": + return string.split(os.environ["LIB"], ";") + \ + string.split(os.environ["LIBPATH"], ";") + elif path == "INCLUDE": + return string.split(os.environ["INCLUDE"], ";") + + + print self.__root, self.__version path = path + " dirs" if self.__version >= 7: key = (r"%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories" @@ -618,6 +631,7 @@ key = (r"%s\6.0\Build System\Components\Platforms" r"\Win32 (%s)\Directories" % (self.__root, platform)) + print key for base in HKEYS: d = read_values(base, key) if d: