[Distutils] overriding build options
Keith Jackson (DSD staff)
krjackson@lbl.gov
Wed Dec 11 18:46:03 2002
That's what I was afraid of. It sure seems like a simple way to override
the compile options from the python build would be nice.
--keith
M.-A. Lemburg wrote:
>
> 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 :-)
>
--
----------------------------------------------------------------
Keith R. Jackson KRJackson@lbl.gov
Secure Grid Technologies Group (510) 486-4401
Lawrence Berkeley National Laboratory http://www-itg.lbl.gov/~kjackson/