diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2019-01-20 11:54:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-20 11:54:44 -0700 |
| commit | 568d0f7483f7b94029d49707ccd6371f9f5c554c (patch) | |
| tree | 3e546aae0f0e5d337fd758852b0623c7c1902b4c /numpy/f2py/f2py2e.py | |
| parent | 2b05f3e38431842ff06df9b2958d22c5a0588767 (diff) | |
| parent | d26842f9ce822f32b4c6165aff75d950e400beb8 (diff) | |
| download | numpy-568d0f7483f7b94029d49707ccd6371f9f5c554c.tar.gz | |
Merge pull request #12807 from mattip/f2py-source-bytes
BUG, DOC: test, fix that f2py.compile accepts str and bytes, rework docs
Diffstat (limited to 'numpy/f2py/f2py2e.py')
| -rwxr-xr-x | numpy/f2py/f2py2e.py | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index 8750ed0b3..47223151f 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -396,8 +396,25 @@ def dict_append(d_out, d_in): def run_main(comline_list): - """Run f2py as if string.join(comline_list,' ') is used as a command line. - In case of using -h flag, return None. + """ + 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. For example, the command ``f2py -m scalar scalar.f`` can be + executed from Python as follows + + You cannot build extension modules with this function, that is, + using ``-c`` is not allowed. Use ``compile`` command instead + + Examples + -------- + .. include:: run_main_session.dat + :literal: + """ crackfortran.reset_global_f2py_vars() f2pydir = os.path.dirname(os.path.abspath(cfuncs.__file__)) |
