<s> import os , sys <EOL> xcprefix = os . environ . get ( '<STR_LIT>' , None ) <EOL> if not xcprefix : <EOL> raise Exception ( "<STR_LIT>" ) <EOL> xcdirflags = "<STR_LIT>" + "<STR_LIT>" <EOL> xcdirflags = xcdirflags . format ( xcprefix ) <EOL> import setup <EOL> print setup . __file__ <EOL> from numpy . distutils import fcompiler , ccompiler <EOL> from numpy . distutils . intelccompiler import IntelCCompiler <EOL> from numpy . distutils . fcompiler . intel import IntelFCompiler <EOL> class IntelMICCompiler ( IntelCCompiler ) : <EOL> """<STR_LIT>""" <EOL> compiler_type = '<STR_LIT>' <EOL> cc_exe = '<STR_LIT>' <EOL> def __init__ ( self , verbose = <NUM_LIT:0> , dry_run = <NUM_LIT:0> , force = <NUM_LIT:0> ) : <EOL> IntelCCompiler . __init__ ( self , verbose , dry_run , force ) <EOL> compiler = "<STR_LIT>" + xcdirflags <EOL> self . set_executables ( compiler = compiler + '<STR_LIT>' , <EOL> compiler_so = compiler , <EOL> compiler_cxx = compiler , <EOL> linker_exe = compiler , <EOL> linker_so = compiler + '<STR_LIT>' ) <EOL> import sys , imp <EOL> imc = imp . new_module ( '<STR_LIT>' ) <EOL> sys . modules [ '<STR_LIT>' ] = imc <EOL> imc . IntelMICCompiler = IntelMICCompiler <EOL> ccompiler . compiler_class [ '<STR_LIT>' ] = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> class IntelMICFCompiler ( IntelFCompiler ) : <EOL> compiler_type = '<STR_LIT>' <EOL> compiler_aliases = ( ) <EOL> description = "<STR_LIT>" <EOL> executables = { <EOL> '<STR_LIT>' : None , <EOL> '<STR_LIT>' : [ None , "<STR_LIT>" ] , <EOL> '<STR_LIT>' : [ None ] , <EOL> '<STR_LIT>' : [ None , "<STR_LIT>" ] , <EOL> '<STR_LIT>' : [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> '<STR_LIT>' : [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> '<STR_LIT>' : [ "<STR_LIT>" ] <EOL> } <EOL> def get_flags ( self ) : <EOL> return [ "<STR_LIT>" + xcdirflags ] <EOL> def get_flags_linker_so ( self ) : <EOL> return self . get_flags ( ) <EOL> def get_flags_opt ( self ) : <EOL> return [ '<STR_LIT>' ] <EOL> def get_version ( self ) : <EOL> return "<STR_LIT>" <EOL> fcompiler . load_all_fcompiler_classes ( ) <EOL> fcompiler . fcompiler_class [ '<STR_LIT>' ] = ( '<STR_LIT>' , IntelMICFCompiler , IntelMICFCompiler . description ) <EOL> setup . setup_package ( ) </s>
