diff options
author | David Cournapeau <cournape@gmail.com> | 2010-09-17 11:43:53 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2010-09-17 11:43:53 +0900 |
commit | e6eafde46153f827742e89c34a9f687b7416cab8 (patch) | |
tree | 4ae14f14d1fcd204c43464cc164a33ab3bf947dd /numpy/f2py/rules.py | |
parent | c952a9cd93344d0504508ccad13bcf818658e534 (diff) | |
download | numpy-e6eafde46153f827742e89c34a9f687b7416cab8.tar.gz |
FEAT: add C module and f2py fortran wrapper output customization from command line.
Diffstat (limited to 'numpy/f2py/rules.py')
-rw-r--r-- | numpy/f2py/rules.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/f2py/rules.py b/numpy/f2py/rules.py index ae3871df5..62a80e25f 100644 --- a/numpy/f2py/rules.py +++ b/numpy/f2py/rules.py @@ -1216,12 +1216,12 @@ def buildmodule(m,um): rd=dictappend(rd,ar) ar=applyrules(module_rules,rd) - fn = os.path.join(options['buildpath'],vrd['modulename']+'module.c') + fn = os.path.join(options['buildpath'],vrd['coutput']) ret['csrc'] = fn f=open(fn,'w') f.write(ar['modulebody'].replace('\t',2*' ')) f.close() - outmess('\tWrote C/API module "%s" to file "%s/%smodule.c"\n'%(m['name'],options['buildpath'],vrd['modulename'])) + outmess('\tWrote C/API module "%s" to file "%s"\n'%(m['name'],fn)) if options['dorestdoc']: fn = os.path.join(options['buildpath'],vrd['modulename']+'module.rest') @@ -1243,7 +1243,7 @@ def buildmodule(m,um): f.close() outmess('\tDocumentation is saved to file "%s/%smodule.tex"\n'%(options['buildpath'],vrd['modulename'])) if funcwrappers: - wn = os.path.join(options['buildpath'],'%s-f2pywrappers.f'%(vrd['modulename'])) + wn = os.path.join(options['buildpath'],vrd['f2py_wrapper_output']) ret['fsrc'] = wn f=open(wn,'w') f.write('C -*- fortran -*-\n') |