How do I override distutils compile options?

Skip Montanaro skip at pobox.com
Tue Feb 5 20:22:02 EST 2002


I built and installed Python with the gcc flags 

    -O3 -minline-all-stringops -fomit-frame-pointer

I'm working on an extension module built with distutils.  For the time being
I'd prefer to compile with 

    -g -Wall

I can add that using distutils.core.Extension's extra_compile_args option.
Is there a way to replace the default compile args though?

Thx,

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list