summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-07-30 13:27:31 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-07-30 13:27:31 (GMT)
commit77621585e48c7f00a8ce3874d2bc3cb317c0f8eb (patch)
treed2a0520e2af97808d3020bd6d5050c24c9ae2af9 /Lib
parent1f30c3777c40fd00b5237556857ca332ead37b6d (diff)
downloadcpython-77621585e48c7f00a8ce3874d2bc3cb317c0f8eb.zip
cpython-77621585e48c7f00a8ce3874d2bc3cb317c0f8eb.tar.gz
cpython-77621585e48c7f00a8ce3874d2bc3cb317c0f8eb.tar.bz2
Mention Cygwin in distutils error message about a missing VS 2003.
Fixes #1257728.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/msvccompiler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py
index c96d527..0d72837 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, \
- ("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: