summaryrefslogtreecommitdiff
path: root/doc/source/f2py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2014-01-02 23:27:42 +0200
committerPauli Virtanen <pav@iki.fi>2014-01-02 23:27:42 +0200
commit6c7af638e760d3229f460cb7475548ef2a3a7ca9 (patch)
tree794e407a2926a5a159b0d362c7e09b34db69a4e0 /doc/source/f2py
parent31f50a81974319a470cd6e913ef914f3e54f2390 (diff)
downloadnumpy-6c7af638e760d3229f460cb7475548ef2a3a7ca9.tar.gz
DOC: f2py: update numpy.distutils part a bit
Diffstat (limited to 'doc/source/f2py')
-rw-r--r--doc/source/f2py/distutils.rst45
-rw-r--r--doc/source/f2py/setup_example.py7
2 files changed, 7 insertions, 45 deletions
diff --git a/doc/source/f2py/distutils.rst b/doc/source/f2py/distutils.rst
index d711d46a9..4a318452e 100644
--- a/doc/source/f2py/distutils.rst
+++ b/doc/source/f2py/distutils.rst
@@ -1,11 +1,10 @@
=============================
-Using via ``numpy_distutils``
+Using via `numpy.distutils`
=============================
-``numpy_distutils`` is part of the SciPy_ project and aims to extend
-standard Python ``distutils`` to deal with Fortran sources and F2PY
-signature files, e.g. compile Fortran sources, call F2PY to construct
-extension modules, etc.
+:mod:`numpy.distutils` is part of Numpy extending standard Python ``distutils``
+to deal with Fortran sources and F2PY signature files, e.g. compile Fortran
+sources, call F2PY to construct extension modules, etc.
.. topic:: Example
@@ -25,7 +24,7 @@ extension modules, etc.
__ setup_example.py
-``numpy_distutils`` extends ``distutils`` with the following features:
+:mod:`numpy.distutils` extends ``distutils`` with the following features:
* ``Extension`` class argument ``sources`` may contain Fortran source
files. In addition, the list ``sources`` may contain at most one
@@ -41,9 +40,6 @@ extension modules, etc.
Additional options to F2PY process can be given using ``Extension``
class argument ``f2py_options``.
-``numpy_distutils`` 0.2.2 and up
-================================
-
* The following new ``distutils`` commands are defined:
``build_src``
@@ -75,34 +71,3 @@ extension modules, etc.
::
f2py -c --help-fcompiler
-
-``numpy_distutils`` pre 0.2.2
-=============================
-
-* The following new ``distutils`` commands are defined:
-
- ``build_flib``
- to build f77/f90 libraries used by Python extensions;
- ``run_f2py``
- to construct Fortran wrapper extension modules.
-
- Run
-
- ::
-
- python <setup.py file> build_flib run_f2py --help
-
- to see available options for these commands.
-
-* When building Python packages containing Fortran sources, then one
- can choose different Fortran compilers either by using ``build_flib``
- command option ``--fcompiler=<Vendor>`` or by defining environment
- variable ``FC_VENDOR=<Vendor>``. Here ``<Vendor>`` can be one of the
- following names::
-
- Absoft Sun SGI Intel Itanium NAG Compaq Digital Gnu VAST PG
-
- See ``numpy_distutils/command/build_flib.py`` for up-to-date list of
- supported compilers.
-
-.. _SciPy: http://www.numpy.org/
diff --git a/doc/source/f2py/setup_example.py b/doc/source/f2py/setup_example.py
index ab451084b..54af77299 100644
--- a/doc/source/f2py/setup_example.py
+++ b/doc/source/f2py/setup_example.py
@@ -1,9 +1,6 @@
-#!/usr/bin/env python
from __future__ import division, absolute_import, print_function
-# File: setup_example.py
-
-from numpy_distutils.core import Extension
+from numpy.distutils.core import Extension
ext1 = Extension(name = 'scalar',
sources = ['scalar.f'])
@@ -11,7 +8,7 @@ ext2 = Extension(name = 'fib2',
sources = ['fib2.pyf', 'fib1.f'])
if __name__ == "__main__":
- from numpy_distutils.core import setup
+ from numpy.distutils.core import setup
setup(name = 'f2py_example',
description = "F2PY Users Guide examples",
author = "Pearu Peterson",