From a70de5c870aa9406ddd84fd98e3d32d4c006d18e Mon Sep 17 00:00:00 2001 From: rgommers Date: Tue, 30 Nov 2010 21:27:34 +0800 Subject: BUG: complex.h is broken on Interix, so skip it. Closes ticket #1365. --- numpy/core/setup.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'numpy') diff --git a/numpy/core/setup.py b/numpy/core/setup.py index b854e879f..c6ba3880a 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -169,6 +169,14 @@ def check_complex(config, mathlibs): priv = [] pub = [] + try: + if os.uname()[0] == "Interix": + warnings.warn("Disabling broken complex support. See #1365") + return priv, pub + except: + # os.uname not available on all platforms. blanket except ugly but safe + pass + # Check for complex support st = config.check_header('complex.h') if st: @@ -425,7 +433,7 @@ def configuration(parent_package='',top_path=None): PYTHON_HAS_UNICODE_WIDE = True else: PYTHON_HAS_UNICODE_WIDE = False - + if ENABLE_SEPARATE_COMPILATION: moredefs.append(('ENABLE_SEPARATE_COMPILATION', 1)) @@ -701,7 +709,7 @@ def configuration(parent_package='',top_path=None): subst_dict) config.add_npy_pkg_config("mlib.ini.in", "lib/npy-pkg-config", subst_dict) - + multiarray_deps = [ join('src', 'multiarray', 'arrayobject.h'), join('src', 'multiarray', 'arraytypes.h'), @@ -773,7 +781,7 @@ def configuration(parent_package='',top_path=None): multiarray_deps.extend(multiarray_src) multiarray_src = [join('src', 'multiarray', 'multiarraymodule_onefile.c')] multiarray_src.append(generate_multiarray_templated_sources) - + umath_deps.extend(umath_src) umath_src = [join('src', 'umath', 'umathmodule_onefile.c')] umath_src.append(generate_umath_templated_sources) -- cgit v1.2.1