[Distutils] overriding build options

M.-A. Lemburg mal@lemburg.com
Wed Dec 11 17:55:01 2002


Keith Jackson (DSD staff) wrote:
> Hi,
> I've got what might be a simple question, but I haven't found an answer 
> yet. The default python build with gcc uses "-Wall" and 
> "-fstrict-prototypes". I'd like to be able to build extension modules 
> without these flags. SWIG generated code throws a lot of warnings, as 
> does the libraries I'm wrapping, and it makes it very hard for users to 
> see what is actually going on. What is the right way to remove these 
> from the compile command?

AFAIK, there is none. These options are read from Python's own
Makefile in sysconfig.customize_compiler(compiler).

Of course, you can start subclassing distutils as I did in
mxSetup.py of the egenix-mx-base package to tweak that API
into doing whatever you like :-)

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/