[Numpy-discussion] Calling routines from a Fortran library using python

George Nurser gnurser@googlemail....
Thu Feb 18 04:44:34 CST 2010


Hi Nils,
I've not tried it, but you might be able to interface with f2py your
own fortran subroutine that calls the library.
Then issue the f2py command with extra arguments -l<libname>
-L<directory with lib>.

See section 5 of
http://cens.ioc.ee/projects/f2py2e/usersguide/index.html#command-f2py

--George.


On 18 February 2010 09:18, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
> Hi all,
>
> I have a static  library (*.a) compiled by gfortran but no
> source files.
> How can I call routines from that library using python ?
>
> Any pointer would be appreciated.
>
> Thanks in advance.
>
>                                                  Nils
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>


More information about the NumPy-Discussion mailing list