This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / f2py / f2py2e / run_main

function

numpy.f2py.f2py2e:run_main

source: build-install/usr/lib/python3.14/site-packages/numpy/f2py/f2py2e.py :431

Signature

def   run_main ( comline_list )

Summary

Equivalent to running::

Extended Summary

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. .. literalinclude:: ../../source/f2py/code/results/run_main_session.dat :language: python

Aliases

  • numpy.f2py.run_main