diff options
author | Pauli Virtanen <pav@iki.fi> | 2014-01-02 22:12:01 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2014-01-02 22:19:47 +0200 |
commit | 75c2d2fe3cc9daa6589707fb6b8512ffa48fc365 (patch) | |
tree | 32e729ca94dd28e06c7c2e10fd250f2ce4b91a2a /doc/source/f2py/setup_example.py | |
parent | a32807e61b25205cc08d552127234b56709c6242 (diff) | |
download | numpy-75c2d2fe3cc9daa6589707fb6b8512ffa48fc365.tar.gz |
DOC: move f2py documentation under doc/ and link its user guide with Sphinx
Diffstat (limited to 'doc/source/f2py/setup_example.py')
-rw-r--r-- | doc/source/f2py/setup_example.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/source/f2py/setup_example.py b/doc/source/f2py/setup_example.py new file mode 100644 index 000000000..ab451084b --- /dev/null +++ b/doc/source/f2py/setup_example.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +from __future__ import division, absolute_import, print_function + +# File: setup_example.py + +from numpy_distutils.core import Extension + +ext1 = Extension(name = 'scalar', + sources = ['scalar.f']) +ext2 = Extension(name = 'fib2', + sources = ['fib2.pyf', 'fib1.f']) + +if __name__ == "__main__": + from numpy_distutils.core import setup + setup(name = 'f2py_example', + description = "F2PY Users Guide examples", + author = "Pearu Peterson", + author_email = "pearu@cens.ioc.ee", + ext_modules = [ext1, ext2] + ) +# End of setup_example.py |