diff options
author | kanhua <kanhwa@gmail.com> | 2014-09-16 18:12:07 +0900 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-09-19 22:37:59 +0200 |
commit | 0cabea84fa0c21ca614f9187e56318f328d964b1 (patch) | |
tree | dd7504b1cfb0af824ea208ad0705854c782e0e6a /doc | |
parent | 9af50285a7807c67f13b2ede17791a1e693da148 (diff) | |
download | numpy-0cabea84fa0c21ca614f9187e56318f328d964b1.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/user/c-info.python-as-glue.rst | 6 |
1 files changed, 6 insertions, 0 deletions
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) |