diff options
author | Rohit Goswami <rog32@hi.is> | 2021-09-19 17:01:16 +0000 |
---|---|---|
committer | Rohit Goswami <rog32@hi.is> | 2021-09-19 17:52:00 +0000 |
commit | 156c005422b020b6fdcd27fc39211708f84f91cb (patch) | |
tree | a07055cb48d9d70f70f388f7e539c3192e4abde3 /doc/source/f2py/code/setup_example.py | |
parent | 80c28d12a4500e12b194d62107c61d37703c0f93 (diff) | |
download | numpy-156c005422b020b6fdcd27fc39211708f84f91cb.tar.gz |
MAINT,DOC: Refactor, syntax highlighting for f2py
Diffstat (limited to 'doc/source/f2py/code/setup_example.py')
-rw-r--r-- | doc/source/f2py/code/setup_example.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/source/f2py/code/setup_example.py b/doc/source/f2py/code/setup_example.py new file mode 100644 index 000000000..479acc004 --- /dev/null +++ b/doc/source/f2py/code/setup_example.py @@ -0,0 +1,16 @@ +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 |