[f2py] example of setup.py

Thomas Robitaille <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Hi,

Does anyone have an example of a simple setup.py file to build a  
module which includes both python and fortran sources?

It seems that numpy.distutils should be used, not scipy_distutils  
(which doesn't seem to exist anymore), but I can't manage to find a  
simple example. Say I have three files:

mymodule/__init__.py
mymodule/somecode.py
src/fastcalc.f90

What is the simplest setup.py file I can use to build this module?

Thanks!

Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.