summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authornbehrnd <nbehrnd@users.noreply.github.com>2023-04-25 16:03:37 +0200
committerGitHub <noreply@github.com>2023-04-25 16:03:37 +0200
commite1b1a5222b0635b8fa08d2b7a1524163c546174f (patch)
tree59da99acd5e2ad7c7a843741e7e5eff8646357d8 /doc/source
parenta87bc1ddce6eb04a2b81fbce0c7c1471f315daf5 (diff)
downloadnumpy-e1b1a5222b0635b8fa08d2b7a1524163c546174f.tar.gz
state an other requirement to build a .f90 based module (#23614)
The generation of a Python module based on a Fortran procedure requires a `Python.h` file.[1] A brief note how to provide this dependency if missing. [1] https://github.com/numpy/numpy/issues/23592 Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/f2py/f2py.getting-started.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/source/f2py/f2py.getting-started.rst b/doc/source/f2py/f2py.getting-started.rst
index da88b46f5..e96564814 100644
--- a/doc/source/f2py/f2py.getting-started.rst
+++ b/doc/source/f2py/f2py.getting-started.rst
@@ -18,6 +18,7 @@ following steps:
* F2PY reads a signature file and writes a Python C/API module containing
Fortran/C/Python bindings.
+
* F2PY compiles all sources and builds an extension module containing
the wrappers.
@@ -26,6 +27,13 @@ following steps:
Fortran, SGI MIPSpro, Absoft, NAG, Compaq etc. For different build systems,
see :ref:`f2py-bldsys`.
+ * Depending on your operating system, you may need to install the Python
+ development headers (which provide the file ``Python.h``) separately. In
+ Linux Debian-based distributions this package should be called ``python3-dev``,
+ in Fedora-based distributions it is ``python3-devel``. For macOS, depending
+ how Python was installed, your mileage may vary. In Windows, the headers are
+ typically installed already.
+
Depending on the situation, these steps can be carried out in a single composite
command or step-by-step; in which case some steps can be omitted or combined
with others.