summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2014-10-15 22:56:28 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2014-10-15 23:02:05 +0200
commitaa8a2437b700ce9a8c3e12652b75982e96a3777c (patch)
tree695fdece0a6f6df7b983c0967c4a9da518d215a2 /numpy/core/setup.py
parent89d627ee05eac6b188ad27d30b4f6a893392f9ce (diff)
downloadnumpy-aa8a2437b700ce9a8c3e12652b75982e96a3777c.tar.gz
BLD: fix expected size argument for complex types
The caller was passing a list of lists instead of a list with its entries doubled. Removes the binary type search for most if not all platforms.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 9e1f6df23..971db9943 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -323,7 +323,8 @@ def check_types(config_cmd, ext, build_dir):
# definition is binary compatible with C99 complex type (check done at
# build time in npy_common.h)
complex_def = "struct {%s __x; %s __y;}" % (type, type)
- res = config_cmd.check_type_size(complex_def, expected=2*expected[type])
+ res = config_cmd.check_type_size(complex_def,
+ expected=[2 * x for x in expected[type]])
if res >= 0:
public_defines.append(('NPY_SIZEOF_COMPLEX_%s' % sym2def(type), '%d' % res))
else: