[Numpy-svn] r6201 - trunk/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Sat Dec 27 04:30:52 CST 2008


Author: cdavid
Date: 2008-12-27 04:30:49 -0600 (Sat, 27 Dec 2008)
New Revision: 6201

Modified:
   trunk/numpy/distutils/command/config.py
Log:
Improve the error message when initializing compiler failed.

Modified: trunk/numpy/distutils/command/config.py
===================================================================
--- trunk/numpy/distutils/command/config.py	2008-12-27 10:15:30 UTC (rev 6200)
+++ trunk/numpy/distutils/command/config.py	2008-12-27 10:30:49 UTC (rev 6201)
@@ -62,12 +62,16 @@
                     self.compiler.initialize()
                 except IOError, e:
                     msg = """\
-Could not initialize %s instance: do you have Visual Studio installed ? If you
-are trying to build with mingw, please use python setup.py build -c mingw32
-instead (original caught exception was %s). If you have Visual Studio
-installed, check it is correctly installed, and the right version (VS 2008 for
-python 2.6, VS 2003 for 2.5, etc...)""" % \
-                        (self.compiler.__class__.__name__, e)
+Could not initialize compiler instance: do you have Visual Studio 
+installed ? If you are trying to build with mingw, please use python setup.py
+build -c mingw32 instead ). If you have Visual Studio installed, check it is
+correctly installed, and the right version (VS 2008 for python 2.6, VS 2003 for
+2.5, etc...). Original exception was: %s, and the Compiler 
+class was %s
+============================================================================""" \
+                        % (e, self.compiler.__class__.__name__)
+                    print """\
+============================================================================"""
                     raise distutils.errors.DistutilsPlatformError(msg)
 
     def _wrap_method(self,mth,lang,args):



More information about the Numpy-svn mailing list