Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: complex.h is broken on Interix, so skip it. Closes ticket #1365.

  • Loading branch information...
commit a70de5c870aa9406ddd84fd98e3d32d4c006d18e 1 parent 9e8bf66
@rgommers rgommers authored charris committed
Showing with 11 additions and 3 deletions.
  1. +11 −3 numpy/core/setup.py
View
14 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 generate_config_h(ext, build_dir):
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 get_mathlib_info(*args):
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 get_mathlib_info(*args):
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)

0 comments on commit a70de5c

Please sign in to comment.
Something went wrong with that request. Please try again.