[Numpy-svn] r6486 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Feb 26 06:37:30 CST 2009


Author: cdavid
Date: 2009-02-26 06:37:26 -0600 (Thu, 26 Feb 2009)
New Revision: 6486

Modified:
   trunk/numpy/core/setup.py
Log:
Fill-up public defines in check_types.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2009-02-26 12:37:07 UTC (rev 6485)
+++ trunk/numpy/core/setup.py	2009-02-26 12:37:26 UTC (rev 6486)
@@ -154,6 +154,7 @@
         res = config_cmd.check_type_size(type)
         if res >= 0:
             private_defines.append(('SIZEOF_%s' % sym2def(type), '%d' % res))
+            public_defines.append(('NPY_SIZEOF_%s' % sym2def(type), '%d' % res))
         else:
             raise SystemError("Checking sizeof (%s) failed !" % type)
 
@@ -162,6 +163,7 @@
                 library_dirs=[pythonlib_dir()])
         if res >= 0:
             private_defines.append(('SIZEOF_%s' % sym2def(type), '%d' % res))
+            public_defines.append(('NPY_SIZEOF_%s' % sym2def(type), '%d' % res))
         else:
             raise SystemError("Checking sizeof (%s) failed !" % type)
 
@@ -171,6 +173,7 @@
                 library_dirs=[pythonlib_dir()])
         if res >= 0:
             private_defines.append(('SIZEOF_%s' % sym2def('PY_LONG_LONG'), '%d' % res))
+            public_defines.append(('NPY_SIZEOF_%s' % sym2def('PY_LONG_LONG'), '%d' % res))
         else:
             raise SystemError("Checking sizeof (%s) failed !" % 'PY_LONG_LONG')
 



More information about the Numpy-svn mailing list