Building things with setup.py
James Stroud
jstroud at mbi.ucla.edu
Sat Sep 23 05:50:22 EDT 2006
Robert Kern wrote:
> Okay, this is possibly part of the problem. numpy.distutils handles
> FORTRAN code differently than other extension modules; this is why pure
> C extension modules both inside numpy and elsewehere were linking fine.
> Try unsetenving $CPPFLAGS and $LDFLAGS and adding those arguments to
> build_ext, if necessary.
>
> Looking on line 516 of numpy/fcompiler/__init__.py (why there's a class
> definition in __init__.py, I'll never know), it does look like the
> linker flags which are carefully constructed by numpy.distutils are
> indeed overridden by the user's setting of $LDFLAGS.
I unset $LDFLAGS and $CPPFLAGS (not trying one at a time), and this did
the trick. Everything built without a hitch.
James
More information about the Python-list
mailing list