Skip to content

Commit 9950e72

Browse files
committed
BUG: f2py: fix building modules via 'f2py -c' (broken in e6eafde)
1 parent 5a0ab02 commit 9950e72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

numpy/f2py/capi_maps.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,10 @@ def modsign2map(m):
643643
else:
644644
ret['interface_usercode'] = ''
645645
ret['pymethoddef'] = getpymethoddef(m) or ''
646-
ret['coutput'] = m['coutput']
647-
ret['f2py_wrapper_output'] = m['f2py_wrapper_output']
646+
if 'coutput' in m:
647+
ret['coutput'] = m['coutput']
648+
if 'f2py_wrapper_output' in m:
649+
ret['f2py_wrapper_output'] = m['f2py_wrapper_output']
648650
return ret
649651

650652
def cb_sign2map(a,var,index=None):

0 commit comments

Comments
 (0)