From: Martin v. Löwis Date: Sun, 30 Jul 2006 13:31:20 +0000 (+0000) Subject: Complain about missing VS 2003 in the error message X-Git-Tag: v2.4.4c1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c005e2e1cbc4fa38ee355368732dd949dc3d4c41;p=thirdparty%2FPython%2Fcpython.git Complain about missing VS 2003 in the error message of msvccompiler, and mention Cygwin as an alternative. Fixes #1257728. --- diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 46e2cd31af38..8ed987e5188e 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -131,8 +131,10 @@ class MacroExpander: self.set_macro("FrameworkSDKDir", net, "sdkinstallroot") except KeyError, exc: # raise DistutilsPlatformError, \ - ("The .NET Framework SDK needs to be installed before " - "building extensions for Python.") + ("""Python was built with Visual Studio 2003; +extensions must be built with a compiler than can generate compatible binaries. +Visual Studio 2003 was not found on this system. If you have Cygwin installed, +you can try compiling with MingW32, by passing "-c mingw32" to setup.py.""") p = r"Software\Microsoft\NET Framework Setup\Product" for base in HKEYS: diff --git a/Misc/NEWS b/Misc/NEWS index 82872a8ff11a..87bc4a3e774f 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -67,6 +67,9 @@ Extension Modules Library ------- +- Bug #1257728: Complain about missing VS 2003 in the error message + of msvccompiler, and mention Cygwin as an alternative. + - Bug #1002398: The documentation for os.path.sameopenfile now correctly refers to file descriptors, not file objects.