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

numpy-svn@scip... numpy-svn@scip...
Sun Sep 21 06:54:54 CDT 2008


Author: cdavid
Date: 2008-09-21 06:54:48 -0500 (Sun, 21 Sep 2008)
New Revision: 5858

Modified:
   branches/clean_math_config/numpy/core/setup.py
Log:
Do not use MSVC workaround anymore, since we now can test for function even when they are intrinsincs.

Modified: branches/clean_math_config/numpy/core/setup.py
===================================================================
--- branches/clean_math_config/numpy/core/setup.py	2008-09-21 11:50:32 UTC (rev 5857)
+++ branches/clean_math_config/numpy/core/setup.py	2008-09-21 11:54:48 UTC (rev 5858)
@@ -63,20 +63,12 @@
     def name_to_defsymb(name):
         return "HAVE_%s" % name.upper()
 
-    use_msvc = config.check_decl("_MSC_VER")
+    #use_msvc = config.check_decl("_MSC_VER")
 
     # Mandatory functions: if not found, fail the build
-    if use_msvc:
-        # MSVC use intrisincs functions when build with e.g. /Ox, and this
-        # breaks tests. Fixing the tests is not trivial, so we assume the
-        # intrisincs functions are available.
-        # Functions which have intrisinces: sin, cos, tan, sin, cosh, tanh,
-        # fabs, sqrt, log10, log, exp, asin, acos, atan, fmod
-        mandatory_funcs = ['modf', 'frexp', 'ldexp']
-    else:
-        mandatory_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs",
-                        "floor", "ceil", "sqrt", "log10", "log", "exp", "asin",
-                        "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp']
+    mandatory_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs",
+		"floor", "ceil", "sqrt", "log10", "log", "exp", "asin",
+		"acos", "atan", "fmod", 'modf', 'frexp', 'ldexp']
 
     if not check_funcs_once(mandatory_funcs):
         raise SystemError("One of the required function to build numpy is not"



More information about the Numpy-svn mailing list