You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/f2py/buildtools/index.rst
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,9 +41,14 @@ Broadly speaking there are three cases which arise when considering the outputs
41
41
42
42
Fortran 77 programs
43
43
- Input file ``blah.f``
44
-
- Generates ``blahmodule.c`` **default name**
44
+
- Generates
45
45
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.
47
52
48
53
Fortran 90 programs
49
54
- Input file ``blah.f``
@@ -52,16 +57,21 @@ Fortran 90 programs
52
57
+ ``blahmodule.c``
53
58
+ ``blah-f2pywrappers2.f90``
54
59
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.
56
62
57
63
Signature files
58
64
- Input file ``blah.pyf``
59
65
- Generates:
60
66
61
67
+ ``blahmodule.c``
62
68
+ ``blah-f2pywrappers2.f90`` (occasionally)
69
+
+ ``f2pywrappers.f`` (occasionally)
63
70
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.
65
75
66
76
67
77
In theory keeping the above requirements in hand, any build system can be
0 commit comments