From 9950e72506bb5aea8e7044b6c466a60e4f74a371 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 6 Oct 2010 21:54:40 +0200 Subject: BUG: f2py: fix building modules via 'f2py -c' (broken in e6eafde) --- numpy/f2py/capi_maps.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'numpy/f2py') 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): -- cgit v1.2.1