def compiler_type():
 dist = Distribution()
 dist.parse_config_files()
 cmd = dist.get_command_obj('build')
 cmd.ensure_finalized()
 compiler = new_compiler(compiler=cmd.compiler)
 return compiler.compiler_type

def compiler_type ( ) : dist = Distribution ( ) dist . parse_config_files ( ) cmd = dist . get_command_obj ( 'build' ) cmd . ensure_finalized ( ) compiler = new_compiler ( compiler = cmd . compiler ) return compiler . compiler_type
gets the compiler type from distutils .