From c005e2e1cbc4fa38ee355368732dd949dc3d4c41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 30 Jul 2006 13:31:20 +0000 Subject: [PATCH] Complain about missing VS 2003 in the error message of msvccompiler, and mention Cygwin as an alternative. Fixes #1257728. --- Lib/distutils/msvccompiler.py | 6 ++++-- Misc/NEWS | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) 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. -- 2.47.3