[SciPy-dev] numpy.distutils: passing config_fc options in setup.py

Prabhu Ramachandran prabhu@aero.iitb.ac...
Sat Oct 3 22:53:35 CDT 2009


I've been using f2py to generate an extension module for someone's 
free-form f90 code.  I need to pass extra arguments to config_fc and 
right now to get everything working I do this:

python setup.py config_fc --f90flags='-ffree-form -fno-underscoring' 
build_ext --inplace

Is there an easy way to set the --f90flags set by default to what I want 
in the setup.py script itself?  I.e. I'd like users to be able to do:

  python setup.py build_ext --inplace

This doesn't seem documented anywhere, is there some place I should look?

This is how my setup.py looks currently:

from numpy.distutils.core import Extension, setup

setup(ext_modules = [Extension("varsha",
                                ["varsha.pyf", "s2p.f",
                                 "fft.c", "invLeg.c"],

passing config_fc={...} to either Extension or setup does not work.
The numpy version is 1.4.0.dev6976.



More information about the Scipy-dev mailing list