Skip to content

Commit a311764

Browse files
committed
DOC: Fix omission in build docs
1 parent 9cd4892 commit a311764

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

doc/source/f2py/buildtools/index.rst

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@ Broadly speaking there are three cases which arise when considering the outputs
4141

4242
Fortran 77 programs
4343
- Input file ``blah.f``
44-
- Generates ``blahmodule.c`` **default name**
44+
- Generates
4545

46-
In this instance, only a ``C`` wrapper file is generated and only one file needs to be kept track of.
46+
+ ``blahmodule.c``
47+
+ ``f2pywrappers.f``
48+
49+
When no ``COMMON`` blocks are present only a ``C`` wrapper file is generated.
50+
Wrappers are also generated to rewrite assumed shape arrays as automatic
51+
arrays.
4752

4853
Fortran 90 programs
4954
- Input file ``blah.f``
@@ -52,16 +57,21 @@ Fortran 90 programs
5257
+ ``blahmodule.c``
5358
+ ``blah-f2pywrappers2.f90``
5459

55-
The secondary wrapper is used to handle code which is subdivided into modules.
60+
The secondary wrapper is used to handle code which is subdivided into
61+
modules. It rewrites assumed shape arrays as automatic arrays.
5662

5763
Signature files
5864
- Input file ``blah.pyf``
5965
- Generates:
6066

6167
+ ``blahmodule.c``
6268
+ ``blah-f2pywrappers2.f90`` (occasionally)
69+
+ ``f2pywrappers.f`` (occasionally)
6370

64-
Signature files ``.pyf`` do not signal their language standard via the file extension, they may generate the module wrapper depending on their contents; which shifts the burden of checking for generated files onto the build system.
71+
Signature files ``.pyf`` do not signal their language standard via the file
72+
extension, they may generate the F90 and F77 specific wrappers depending on
73+
their contents; which shifts the burden of checking for generated files onto
74+
the build system.
6575

6676

6777
In theory keeping the above requirements in hand, any build system can be

0 commit comments

Comments
 (0)