module documentation
- f2py2e - Fortran to Python C/API generator. 2nd Edition.
- See __usage__ below.
Copyright 1999--2011 Pearu Peterson all rights reserved, Pearu Peterson <pearu@cens.ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy License.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Date: 2005/05/06 08:31:19 $ Pearu Peterson
Function | buildmodules |
Undocumented |
Function | callcrackfortran |
Undocumented |
Function | dict |
Undocumented |
Function | filter |
Filter files by prefix and suffix. |
Function | get |
Undocumented |
Function | main |
Undocumented |
Function | run |
Do it all in one call! |
Function | run |
Equivalent to running: |
Function | scaninputline |
Undocumented |
Variable | __usage__ |
Undocumented |
Equivalent to running:
f2py <args>
where <args>=string.join(<list>,' '), but in Python. Unless -h is used, this function returns a dictionary containing information on generated modules and their dependencies on source files.
You cannot build extension modules with this function, that is, using -c is not allowed. Use the compile command instead.
Examples
The command f2py -m scalar scalar.f can be executed from Python as follows.