Remark: routines starting with c/z are for double/single complex and routines for d/s for double/single real numbers. The calling sequence for c/z and d/s are (I think always) the same and sometimes they are also the same for the real and complex case.

Then one has to download the fortran file for the lapack routine of interest.

Generate wrapper by calling

f2py -m wrap_lap -h wrap_lap.pyf lapack_routine.f

Generate library

f2py -c wrap_lap.pyf lapack_routine.f -latlas -llapack -lblas

You can use this by

import wrap_lap

Note, that this is not yet polished (this is the part on

which has to spent some effort ), i.e. one has to tell which variables are input, which are output and which are optional. In addition temporary storage has to be provided with the right dimensions as described in the documentation part of the lapack routine.