diff options
author | David Cournapeau <cournape@gmail.com> | 2011-08-21 12:02:36 +0200 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2011-08-21 12:02:36 +0200 |
commit | 70d9f674031dc2a6983b00ab73cf67ad3fd98705 (patch) | |
tree | 8b0457fc1022ee7f4fe34ece1adf91a2975ea319 /numpy | |
parent | a90754d673aa4af4d605a657134d76422c390510 (diff) | |
download | numpy-70d9f674031dc2a6983b00ab73cf67ad3fd98705.tar.gz |
STY: define all config.h macro to value 1 to match autoheader convention.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/setup.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index d5f2edcc3..6b5b0df3b 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -125,7 +125,7 @@ def check_math_capabilities(config, moredefs, mathlibs): st = config.check_funcs_once(funcs_name, libraries=mathlibs, decl=decl, call=decl) if st: - moredefs.extend([fname2def(f) for f in funcs_name]) + moredefs.extend([(fname2def(f), 1) for f in funcs_name]) return st def check_funcs(funcs_name): @@ -135,7 +135,7 @@ def check_math_capabilities(config, moredefs, mathlibs): # Global check failed, check func per func for f in funcs_name: if check_func(f): - moredefs.append(fname2def(f)) + moredefs.append((fname2def(f), 1)) return 0 else: return 1 @@ -180,8 +180,8 @@ def check_complex(config, mathlibs): # Check for complex support st = config.check_header('complex.h') if st: - priv.append('HAVE_COMPLEX_H') - pub.append('NPY_USE_C99_COMPLEX') + priv.append(('HAVE_COMPLEX_H', 1)) + pub.append(('NPY_USE_C99_COMPLEX', 1)) for t in C99_COMPLEX_TYPES: st = config.check_type(t, headers=["complex.h"]) @@ -196,9 +196,9 @@ def check_complex(config, mathlibs): for f in flist: if config.check_func(f, call=True, decl=True, libraries=mathlibs): - priv.append(fname2def(f)) + priv.append((fname2def(f), 1)) else: - priv.extend([fname2def(f) for f in flist]) + priv.extend([(fname2def(f), 1) for f in flist]) check_prec('') check_prec('f') |