Re: [f2py] wrapping c with f2py

Pearu Peterson <[email protected]>
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>

Ariel Balter wrote:
> Thanks for the help!
> 
> It does work now.  So, on to more complicated exmaples.
> 
> Is it possible to wrap an entire c code project, i.e. in more than one 
> file?  Is it best to create a library.  Can one use multiple .c files, 
> or should there be a .c front end and multiple .o files?

yes/depends/yes, no for 'should'.

You can specify arbitrary number of .c, .o, .a files in `f2py -c`
command line that will be compiled/linked with the extension
module.

To wrap c code project to Python, check also swig, ctypes,
cython out.

HTH,ou
Pearu
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.