I spent almost an hour googling for the solution, but the documentation for numpy.distutils is very sparse.
I have a f2py-wrapped module. It consists basically of 3 files:
a.f90
a.pyf
lib.a <- this is a static library that contains most of the computational code
The module is well compiled with the following shell-script command.
f2py --build-dir temp -c a.pyf a.f90 lib.a --fcompiler=gnu95
--fcompiler-flags="Zillions of compiler options"
As a result, I have the python module a.so (the name is specified in the .pyf file).
How do I do that with numpy.distutils (or some other python-oriented building tools)? A less important question is, can I also include the dependence from lib.a (and rebuild it when necessary?)