summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-10-05 07:55:39 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-10-05 07:55:39 +0000
commit9a41e774079340e1a8887d9f2310c2458580ec6c (patch)
treefd66094903fa7ff08638611c67df130c26a1d2c7 /numpy/core/setup.py
parent31de18a3c12a748d4a929fa1d00a056e1d02b892 (diff)
downloadnumpy-9a41e774079340e1a8887d9f2310c2458580ec6c.tar.gz
ENH: configure NPY_INLINE when the header is read, not at build time.
We configured the macro NPY_INLINE (for portable inline) at numpy build time, but this problematic when a numpy extension is built with a different compiler than the one used to build numpy itsel (e.g. building numpy with mingw, but building a numpy extension with MS compiler). Instead, the macro is defined everytime npy_common.h is read.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index e09139ce7..4b616c390 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -438,9 +438,6 @@ def configuration(parent_package='',top_path=None):
if config_cmd.check_decl('PRIdPTR', headers = ['inttypes.h']):
moredefs.append(('NPY_USE_C99_FORMATS', 1))
- # Inline check
- inline = config_cmd.check_inline()
-
# visibility check
hidden_visibility = visibility_define(config_cmd)
moredefs.append(('NPY_VISIBILITY_HIDDEN', hidden_visibility))
@@ -457,9 +454,6 @@ def configuration(parent_package='',top_path=None):
else:
target_f.write('#define %s %s\n' % (d[0],d[1]))
- # define NPY_INLINE to recognized keyword
- target_f.write('#define NPY_INLINE %s\n' % inline)
-
# Define __STDC_FORMAT_MACROS
target_f.write("""
#ifndef __STDC_FORMAT_MACROS