diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-27 10:30:49 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-27 10:30:49 +0000 |
commit | 7b811f816d7f95d4207117ff4a72e206b732270c (patch) | |
tree | 9422ea8ec0258db9639586166c1914d397b3ff21 /numpy/distutils/command/config.py | |
parent | 6bbab81d5d11dd1eb38f40c8a3dfc699885701d3 (diff) | |
download | numpy-7b811f816d7f95d4207117ff4a72e206b732270c.tar.gz |
Improve the error message when initializing compiler failed.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index d0582b8cd..aa9a67e87 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -62,12 +62,16 @@ class config(old_config): 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): |