[SciPy-user] [Nipy-devel] how to wrap C++

Travis Oliphant oliphant.travis at ieee.org
Sat Jan 27 02:59:15 CST 2007


Robert Kern wrote:
> Travis Oliphant wrote:
>   
>> Mark Heslep wrote:
>>     
>>> A bit of redirect here: If the OP had been talking about an existing C 
>>> lib and not C++, would the recommendation be 'always reach first for 
>>> Ctypes'? It seems too easy and direct to waste time elsewhere.
>>>
>>>       
>> It still depends a little.  A large library is probably more easily 
>> handled with SWIG, but for custom interfaces I would say ctypes is best. 
>>     
>
> I would also suggest that if the interfaces are simple enough (or rather
> FORTRAN-like enough) that f2py can handle them, f2py might be easiest.
>
>   

Yeah,  f2py is still my favorite way to link to interface to a library

-Travis




More information about the SciPy-user mailing list