diff options
| author | Rohit Goswami <rog32@hi.is> | 2021-12-26 17:49:11 +0000 |
|---|---|---|
| committer | Rohit Goswami <rog32@hi.is> | 2021-12-26 17:58:16 +0000 |
| commit | fe1872ec6a613ea7223332560583ada6e1d482ab (patch) | |
| tree | e30f9fe2e50009b81fe2d3f69cd76b935b2a933d | |
| parent | 6dfbe0340ac409094bb907de8464264916924ddd (diff) | |
| download | numpy-fe1872ec6a613ea7223332560583ada6e1d482ab.tar.gz | |
DOC: Add help string for F2PY
From https://github.com/HaoZeke/f2py_skel/commit/39a0849b16206e0201e89e12233e5a871a3a71a1
| -rw-r--r-- | doc/source/f2py/usage.rst | 4 | ||||
| -rwxr-xr-x | numpy/f2py/f2py2e.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/f2py/usage.rst b/doc/source/f2py/usage.rst index 596148799..1bf406ff2 100644 --- a/doc/source/f2py/usage.rst +++ b/doc/source/f2py/usage.rst @@ -220,6 +220,10 @@ Other options Do [not] lower the cases in ``<fortran files>``. By default, ``--lower`` is assumed with ``-h`` switch, and ``--no-lower`` without the ``-h`` switch. +``-include<header>`` + Writes additional headers in the C wrapper, can be passed multiple times, + generates #include <header> each time. Note that this is meant to be passed in + single quotes and without spaces, for example ``'-include<stdbool.h>'`` ``--build-dir <dirname>`` All F2PY generated files are created in ``<dirname>``. Default is ``tempfile.mkdtemp()``. diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index 4d79c304a..bb5b32878 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -82,6 +82,9 @@ Options: file <modulename>module.c or extension module <modulename>. Default is 'untitled'. + '-include<header>' Writes additional headers in the C wrapper, can be passed + multiple times, generates #include <header> each time. + --[no-]lower Do [not] lower the cases in <fortran files>. By default, --lower is assumed with -h key, and --no-lower without -h key. |
