self.set_executables(compiler='gcc -O -Wall', compiler_so=
    'gcc -mdll -O -Wall', compiler_cxx='g++ -O -Wall', linker_exe='gcc',
    linker_so='%s %s %s' % (self.linker_dll, shared_option, entry_point))
How to tell distutils to use gcc?