]> granicus.if.org Git - python/commitdiff
Mention Cygwin in distutils error message about a missing VS 2003.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Jul 2006 13:27:31 +0000 (13:27 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 30 Jul 2006 13:27:31 +0000 (13:27 +0000)
Fixes #1257728.

Lib/distutils/msvccompiler.py
Misc/NEWS

index c96d5274785916ed14279991b8ac30598c37a63b..0d72837ed3011035647dd97cb348129bc7596325 100644 (file)
@@ -131,8 +131,10 @@ class MacroExpander:
                 self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
         except KeyError, exc: #
             raise DistutilsPlatformError, \
-                  ("Visual Studio 2003 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:
index 80d67e2e02deb8ca733bb6d83b3da595b1cd362e..efe6cff1d24d66574da98b4a7b873c413e3e6b7b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -220,6 +220,9 @@ Core and builtins
 Library
 -------
 
+- Bug #1257728: Mention Cygwin in distutils error message about a missing
+  VS 2003.
+
 - Patch #1519566: Update turtle demo, make begin_fill idempotent.
 
 - Bug #1508010: msvccompiler now requires the DISTUTILS_USE_SDK