[Numpy-svn] r6376 - branches/coremath/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Feb 18 12:21:17 EST 2009


Author: cdavid
Date: 2009-02-18 11:21:08 -0600 (Wed, 18 Feb 2009)
New Revision: 6376

Modified:
   branches/coremath/numpy/core/setup.py
Log:
Forgot to raise an exception if Python.h cannot be found.

Modified: branches/coremath/numpy/core/setup.py
===================================================================
--- branches/coremath/numpy/core/setup.py	2009-02-18 17:20:50 UTC (rev 6375)
+++ branches/coremath/numpy/core/setup.py	2009-02-18 17:21:08 UTC (rev 6376)
@@ -139,7 +139,11 @@
             log.info('Generating %s',target)
 
             # Check we have the python header (-dev* packages on Linux)
-            config_cmd.check_header('Python.h')
+            result = config_cmd.check_header('Python.h')
+            if not result:
+                raise SystemError(
+                        "Cannot compiler 'Python.h'. Perhaps you need to "\
+                        "install python-dev|python-devel.")
 
             tc = generate_testcode(target)
             result = config_cmd.try_run(tc, library_dirs = default_lib_dirs)




More information about the Numpy-svn mailing list