[f2py] F2PY directive, scipy_distutils, and only:

pearu at cens.ioc.ee pearu at cens.ioc.ee
Tue Jul 12 13:09:41 EEST 2005

On Thu, 30 Jun 2005, Christoph Scheurer wrote:

> Hello,
> I am currently trying to use fortran source code files containing embedded 
> f2py directives together with scipy_distutils. Everything works fine but I
> could not figure out how to use the 'only: <fortran functions>  :' or 
> 'skip: <fortran functions>  :' functionality provided by f2py from within the
> setup.py file. I can specify f2py_options and sources for the Extension
> objects but I can't find a way to attach e.g. the 'only:' directive to
> specific fortran files. Is that possible?

Yes. Use

  f2py_options = ['only:'] + [<list of files>] + [':']


More information about the f2py-users mailing list