diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-10-06 21:54:40 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-10-06 21:54:49 +0200 |
commit | 9950e72506bb5aea8e7044b6c466a60e4f74a371 (patch) | |
tree | 43ac0db0fdc50062876ee5173ff8aa48c0ef270d | |
parent | 5a0ab023d8f81ccf83fe6adf7983d7631021cb62 (diff) | |
download | numpy-9950e72506bb5aea8e7044b6c466a60e4f74a371.tar.gz |
BUG: f2py: fix building modules via 'f2py -c' (broken in e6eafde)
-rw-r--r-- | numpy/f2py/capi_maps.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/f2py/capi_maps.py b/numpy/f2py/capi_maps.py index cba98af2b..c10e3ee84 100644 --- a/numpy/f2py/capi_maps.py +++ b/numpy/f2py/capi_maps.py @@ -643,8 +643,10 @@ def modsign2map(m): else: ret['interface_usercode'] = '' ret['pymethoddef'] = getpymethoddef(m) or '' - ret['coutput'] = m['coutput'] - ret['f2py_wrapper_output'] = m['f2py_wrapper_output'] + if 'coutput' in m: + ret['coutput'] = m['coutput'] + if 'f2py_wrapper_output' in m: + ret['f2py_wrapper_output'] = m['f2py_wrapper_output'] return ret def cb_sign2map(a,var,index=None): |