def choose_compiler(compiler_name='<STR_LIT>'):
if not compiler_name:<EOL><INDENT>compiler_name = '<STR_LIT>'<EOL><DEDENT>if sys.platform == '<STR_LIT:win32>':<EOL><INDENT>if not compiler_name:<EOL><INDENT>if msvc_exists():<EOL><INDENT>compiler_name = '<STR_LIT>'<EOL><DEDENT>elif gcc_exists():<EOL><INDENT>compiler_name = '<STR_LIT>'<EOL><DEDENT><DEDENT>elif compiler_name == '<STR_LIT>':<EOL><INDENT>compiler_name = '<STR_LIT>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if compiler_name == '<STR_LIT>':<EOL><INDENT>compiler_name = '<STR_LIT>'<EOL><DEDENT><DEDENT>return compiler_name<EOL>
Try and figure out which compiler is gonna be used on windows.
        On other platforms, it just returns whatever value it is given.

        converts 'gcc' to 'mingw32' on win32