diff options
| -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. |
