[SciPy-dev] RE: f2py and NO_APPEND_FORTRAN

Pearu Peterson pearu at cens.ioc.ee
Tue Oct 1 02:20:28 CDT 2002


> > On the AIX port, I'm having difficulty with underscores in the f2py
> > generated sources.... I'm not sure (within scipy) how to specify
> > that the C source (e.g. fblasmodule.c) should be compiled with
> > -DNO_APPEND_FORTRAN.
> > 
> > I have written a ibm_fortran_compiler for detecting xlf/xlF, but
> > that doesn't feed back to the C compilation step.

I'd suggest using

  -qextname

option for xlf. It is safer to have Fortran names ended with _ in
order to avoid possible name conflicts.

Another (but only if necessary, e.g. when using system Fortran
libraries that were compiled without -qextname) option would be to use

  python setup.py build_ext -DNO_APPEND_FORTRAN build

for building scipy.

Pearu





More information about the Scipy-dev mailing list