def get_compiler(compiler, **compiler_attrs):
 if ((compiler is None) or isinstance(compiler, str)):
  cc = ccompiler.new_compiler(compiler=compiler)
  customize_compiler(cc)
  if (cc.compiler_type == 'mingw32'):
   customize_mingw(cc)
 else:
  cc = compiler
 for (name, val) in compiler_attrs.items():
  setattr(cc, name, val)
 return cc

def get_compiler ( compiler , ** compiler_attrs ) : if ( ( compiler is None ) or isinstance ( compiler , str ) ) : cc = ccompiler . new_compiler ( compiler = compiler ) customize_compiler ( cc ) if ( cc . compiler_type == 'mingw32' ) : customize_mingw ( cc ) else : cc = compiler for ( name , val ) in compiler_attrs . items ( ) : setattr ( cc , name , val ) return cc
get and customize a compiler .