summaryrefslogtreecommitdiff
path: root/doc/source/f2py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-08-22 17:03:50 +0300
committermattip <matti.picus@gmail.com>2018-08-22 17:04:19 +0300
commitea666b6047b0086233eea10bec4492100d78adcf (patch)
treed8fd77918cbe60c577c2c421c52c60ae2ae7181a /doc/source/f2py
parentace2aa673173149f72eea463cf7da896c8ad27d9 (diff)
downloadnumpy-ea666b6047b0086233eea10bec4492100d78adcf.tar.gz
DOC: formatting, de-emphasize f2pyfe [ci skip]
Diffstat (limited to 'doc/source/f2py')
-rw-r--r--doc/source/f2py/getting-started.rst10
-rw-r--r--doc/source/f2py/usage.rst10
2 files changed, 10 insertions, 10 deletions
diff --git a/doc/source/f2py/getting-started.rst b/doc/source/f2py/getting-started.rst
index 0eee494cb..3d8ea24e4 100644
--- a/doc/source/f2py/getting-started.rst
+++ b/doc/source/f2py/getting-started.rst
@@ -45,9 +45,9 @@ to run
::
- python -mnumpy.f2py -c fib1.f -m fib1
+ python -m numpy.f2py -c fib1.f -m fib1
-This command builds (see ``-c`` flag, execute ``python -mnumpy.f2py`` without
+This command builds (see ``-c`` flag, execute ``python -m numpy.f2py`` without
arguments to see the explanation of command line options) an extension
module ``fib1.so`` (see ``-m`` flag) to the current directory. Now, in
Python the Fortran subroutine ``FIB`` is accessible via ``fib1.fib``::
@@ -162,7 +162,7 @@ one.
::
- python -mnumpy.f2py fib1.f -m fib2 -h fib1.pyf
+ python -m numpy.f2py fib1.f -m fib2 -h fib1.pyf
The signature file is saved to ``fib1.pyf`` (see ``-h`` flag) and
its contents is shown below.
@@ -188,7 +188,7 @@ one.
::
- python -mnumpy.f2py -c fib2.pyf fib1.f
+ python -m numpy.f2py -c fib2.pyf fib1.f
In Python::
@@ -243,7 +243,7 @@ __ fib3.f
Building the extension module can be now carried out in one command::
- python -mnumpy.f2py -c -m fib3 fib3.f
+ python -m numpy.f2py -c -m fib3 fib3.f
Notice that the resulting wrapper to ``FIB`` is as "smart" as in
previous case::
diff --git a/doc/source/f2py/usage.rst b/doc/source/f2py/usage.rst
index 3f8a6a063..215005721 100644
--- a/doc/source/f2py/usage.rst
+++ b/doc/source/f2py/usage.rst
@@ -3,17 +3,17 @@ Using F2PY
===========
F2PY can be used either as a command line tool ``f2py`` or as a Python
-module ``f2py2e``. While we try to install the command line tool as part
+module ``numpy.f2py``. While we try to install the command line tool as part
of the numpy setup, some platforms like Windows make it difficult to
reliably put the executable on the ``PATH``. We will refer to ``f2py``
-in this document but you may have to run it as
+in this document but you may have to run it as a module
```
-python -mnumpy.f2py
+python -m numpy.f2py
```
If you run ``f2py`` with no arguments, and the line ``numpy Version`` at the
-end matches the NumPy version printed from ``python -mnumpy.f2py``, then you
+end matches the NumPy version printed from ``python -m numpy.f2py``, then you
can use the shorter version. If not, or if you cannot run ``f2py``, you should
replace all calls to ``f2py`` here with the longer version.
@@ -207,7 +207,7 @@ Execute ``f2py`` without any options to get an up-to-date list of
available options.
Python module ``f2py2e``
-=========================
+========================
.. warning::