[Numpy-svn] r6492 - trunk/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Feb 26 08:21:53 EST 2009
Author: cdavid
Date: 2009-02-26 07:21:49 -0600 (Thu, 26 Feb 2009)
New Revision: 6492
Modified:
trunk/numpy/core/setup.py
Log:
Use config_cmd directly as an argument for check_types.
Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py 2009-02-26 13:21:34 UTC (rev 6491)
+++ trunk/numpy/core/setup.py 2009-02-26 13:21:49 UTC (rev 6492)
@@ -136,12 +136,10 @@
if st:
moredefs.append(name_to_defsymb("decl_%s" % f))
-def check_types(config, ext, build_dir):
+def check_types(config_cmd, ext, build_dir):
private_defines = []
public_defines = []
- config_cmd = config.get_config_cmd()
-
# Check we have the python header (-dev* packages on Linux)
result = config_cmd.check_header('Python.h')
if not result:
@@ -240,7 +238,7 @@
log.info('Generating %s',target)
# Check sizeof
- moredefs, ignored = check_types(config, ext, build_dir)
+ moredefs, ignored = check_types(config_cmd, ext, build_dir)
# Check math library and C99 math funcs availability
mathlibs = check_mathlib(config_cmd)
@@ -304,7 +302,7 @@
log.info('Generating %s',target)
# Check sizeof
- ignored, moredefs = check_types(config, ext, build_dir)
+ ignored, moredefs = check_types(config_cmd, ext, build_dir)
if is_npy_no_signal():
moredefs.append(('NPY_NO_SIGNAL', 1))
More information about the Numpy-svn
mailing list