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

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Feb 19 04:36:15 EST 2009


Author: cdavid
Date: 2009-02-19 03:36:09 -0600 (Thu, 19 Feb 2009)
New Revision: 6409

Modified:
   branches/coremath/numpy/core/setup.py
Log:
Do not silently fail to get sizeof basic types.

Modified: branches/coremath/numpy/core/setup.py
===================================================================
--- branches/coremath/numpy/core/setup.py	2009-02-19 09:33:41 UTC (rev 6408)
+++ branches/coremath/numpy/core/setup.py	2009-02-19 09:36:09 UTC (rev 6409)
@@ -146,11 +146,15 @@
         res = config_cmd.check_type_size(type)
         if res >= 0:
             private_defines.append(('SIZEOF_%s' % sym2def(type), '%d' % res))
+        else:
+            raise SystemError("Checking sizeof (%s) failed !" % type)
 
     for type in ('Py_intptr_t',):
         res = config_cmd.check_type_size(type, headers=["Python.h"])
         if res >= 0:
             private_defines.append(('SIZEOF_%s' % sym2def(type), '%d' % res))
+        else:
+            raise SystemError("Checking sizeof (%s) failed !" % type)
 
     # We check declaration AND type because that's how distutils does it.
     if config_cmd.check_decl('PY_LONG_LONG', headers=['Python.h']):




More information about the Numpy-svn mailing list