summaryrefslogtreecommitdiff
path: root/scipy_distutils/ccompiler.py
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2004-03-31 18:48:01 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2004-03-31 18:48:01 +0000
commit442e9dd7b917d1deb7b143d254a2b0e5a986bd3d (patch)
tree665cc622311ee351263db7483fa5ed20623a1652 /scipy_distutils/ccompiler.py
parentf061375e2cd34559bb1d08fe7e7d82dc700a1792 (diff)
downloadnumpy-442e9dd7b917d1deb7b143d254a2b0e5a986bd3d.tar.gz
Improved debug messages
Diffstat (limited to 'scipy_distutils/ccompiler.py')
-rw-r--r--scipy_distutils/ccompiler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scipy_distutils/ccompiler.py b/scipy_distutils/ccompiler.py
index a8ef60e4d..f408b48a7 100644
--- a/scipy_distutils/ccompiler.py
+++ b/scipy_distutils/ccompiler.py
@@ -228,16 +228,15 @@ def new_compiler (plat=None,
if compiler is not None:
msg = msg + " with '%s' compiler" % compiler
raise DistutilsPlatformError, msg
-
module_name = "scipy_distutils." + module_name
try:
__import__ (module_name)
except ImportError, msg:
- print msg
+ print msg,'in scipy_distutils, trying from distutils..'
module_name = module_name[6:]
try:
__import__(module_name)
- except ImportError:
+ except ImportError, msg:
raise DistutilsModuleError, \
"can't compile C/C++ code: unable to load module '%s'" % \
module_name