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