From 0cabea84fa0c21ca614f9187e56318f328d964b1 Mon Sep 17 00:00:00 2001 From: kanhua Date: Tue, 16 Sep 2014 18:12:07 +0900 Subject: DOC: add section on compiling pyf files Add section to remind the readers to recomplile add.pyf and add.f95 files before checking the add module in python --- doc/source/user/c-info.python-as-glue.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/source/user') diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst index 985d478e0..0560c005e 100644 --- a/doc/source/user/c-info.python-as-glue.rst +++ b/doc/source/user/c-info.python-as-glue.rst @@ -249,8 +249,14 @@ necessary to tell f2py that the value of n depends on the input a (so that it won't try to create the variable n until the variable a is created). +After modifying ``add.pyf``, the new python module file can be generated +by compiling both ``add.f95`` and ``add.pyf``:: + + f2py -c add.pyf add.f95 + The new interface has docstring: + >>> import add >>> print add.zadd.__doc__ zadd - Function signature: c = zadd(a,b) -- cgit v1.2.1