[Numpy-discussion] distutils & C++ & Fortran
pav at iki.fi
Tue Oct 16 16:56:51 EDT 2012
Charles R Harris <charlesr.harris <at> gmail.com> writes:
> On Sun, Oct 14, 2012 at 11:53 AM, Pauli Virtanen <pav <at> iki.fi> wrote:
> I'd like to link both C++ and Fortran code into a single
> Python extension, using numpy.distutils (for scipy.special).
> But it seems the distutils-based tools actually cannot do this?
> Does someone know if there's a way to work around this?
> Looks like the answer is "no" ;) Is this a linking problem?
Pretty much. Knowing the Fortran or C++ runtime names / link flags
on different compilers would be enough, but apparently this
information is not written down anywhere in the build system.
I guess I'll stick with the workaround of putting them in separate
More information about the NumPy-Discussion