[Numpy-svn] r5775 - branches/clean_math_config/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Sep 4 22:19:08 CDT 2008


Author: cdavid
Date: 2008-09-04 22:19:04 -0500 (Thu, 04 Sep 2008)
New Revision: 5775

Modified:
   branches/clean_math_config/numpy/core/setup.py
Log:
Use the way formely used by setup to set backward-compatible defines.

Modified: branches/clean_math_config/numpy/core/setup.py
===================================================================
--- branches/clean_math_config/numpy/core/setup.py	2008-09-05 03:15:25 UTC (rev 5774)
+++ branches/clean_math_config/numpy/core/setup.py	2008-09-05 03:19:04 UTC (rev 5775)
@@ -8,15 +8,11 @@
 FUNCTIONS_TO_CHECK = [
     ('expl', 'HAVE_LONGDOUBLE_FUNCS'),
     ('expf', 'HAVE_FLOAT_FUNCS'),
-    ('log1p', 'HAVE_LOG1P'),
-    ('expm1', 'HAVE_EXPM1'),
     ('asinh', 'HAVE_INVERSE_HYPERBOLIC'),
     ('atanhf', 'HAVE_INVERSE_HYPERBOLIC_FLOAT'),
     ('atanhl', 'HAVE_INVERSE_HYPERBOLIC_LONGDOUBLE'),
     ('isnan', 'HAVE_ISNAN'),
     ('isinf', 'HAVE_ISINF'),
-    ('rint', 'HAVE_RINT'),
-    ('trunc', 'HAVE_TRUNC'),
     ]
 
 def is_npy_no_signal():
@@ -92,8 +88,12 @@
             moredefs.append(name_to_defsymb(name))
 
     # Keep this for compatibility for now
+    def check_func_old(func_name):
+        return config.check_func(func_name, libraries=mathlibs,
+                                 decl=False, headers = ["math.h"])
+
     for func_name, defsymbol in FUNCTIONS_TO_CHECK:
-        if check_func(func_name):
+        if check_func_old(func_name):
             moredefs.append(defsymbol)
 
 def configuration(parent_package='',top_path=None):



More information about the Numpy-svn mailing list