<s> """<STR_LIT>""" <EOL> __revision__ = "<STR_LIT>" <EOL> import sys , os <EOL> from distutils . util import get_platform <EOL> from distutils . core import Command <EOL> from distutils . errors import DistutilsOptionError <EOL> def show_compilers ( ) : <EOL> from distutils . ccompiler import show_compilers <EOL> show_compilers ( ) <EOL> class build ( Command ) : <EOL> description = "<STR_LIT>" <EOL> user_options = [ <EOL> ( '<STR_LIT>' , '<STR_LIT:b>' , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , None , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , None , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , None , <EOL> "<STR_LIT>" + <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , None , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:t>' , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:p>' , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" % get_platform ( ) ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:c>' , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:g>' , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:f>' , <EOL> "<STR_LIT>" ) , <EOL> ( '<STR_LIT>' , '<STR_LIT:e>' , <EOL> "<STR_LIT>" ) , <EOL> ] <EOL> boolean_options = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> help_options = [ <EOL> ( '<STR_LIT>' , None , <EOL> "<STR_LIT>" , show_compilers ) , <EOL> ] <EOL> def initialize_options ( self ) : <EOL> self . build_base = '<STR_LIT>' <EOL> self . build_purelib = None <EOL> self . build_platlib = None <EOL> self . build_lib = None <EOL> self . build_temp = None <EOL> self . build_scripts = None <EOL> self . compiler = None <EOL> self . plat_name = None <EOL> self . debug = None <EOL> self . force = <NUM_LIT:0> <EOL> self . executable = None <EOL> def finalize_options ( self ) : <EOL> if self . plat_name is None : <EOL> self . plat_name = get_platform ( ) <EOL> else : <EOL> if os . name != '<STR_LIT>' : <EOL> raise DistutilsOptionError ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> plat_specifier = "<STR_LIT>" % ( self . plat_name , sys . version [ <NUM_LIT:0> : <NUM_LIT:3> ] ) <EOL> if hasattr ( sys , '<STR_LIT>' ) : <EOL> plat_specifier += '<STR_LIT>' <EOL> if self . build_purelib is None : <EOL> self . build_purelib = os . path . join ( self . build_base , '<STR_LIT>' ) <EOL> if self . build_platlib is None : <EOL> self . build_platlib = os . path . join ( self . build_base , <EOL> '<STR_LIT>' + plat_specifier ) <EOL> if self . build_lib is None : <EOL> if self . distribution . ext_modules : <EOL> self . build_lib = self . build_platlib <EOL> else : <EOL> self . build_lib = self . build_purelib <EOL> if self . build_temp is None : <EOL> self . build_temp = os . path . join ( self . build_base , <EOL> '<STR_LIT>' + plat_specifier ) <EOL> if self . build_scripts is None : <EOL> self . build_scripts = os . path . join ( self . build_base , <EOL> '<STR_LIT>' + sys . version [ <NUM_LIT:0> : <NUM_LIT:3> ] ) <EOL> if self . executable is None : <EOL> self . executable = os . path . normpath ( sys . executable ) <EOL> def run ( self ) : <EOL> for cmd_name in self . get_sub_commands ( ) : <EOL> self . run_command ( cmd_name ) <EOL> def has_pure_modules ( self ) : <EOL> return self . distribution . has_pure_modules ( ) <EOL> def has_c_libraries ( self ) : <EOL> return self . distribution . has_c_libraries ( ) <EOL> def has_ext_modules ( self ) : <EOL> return self . distribution . has_ext_modules ( ) <EOL> def has_scripts ( self ) : <EOL> return self . distribution . has_scripts ( ) <EOL> sub_commands = [ ( '<STR_LIT>' , has_pure_modules ) , <EOL> ( '<STR_LIT>' , has_c_libraries ) , <EOL> ( '<STR_LIT>' , has_ext_modules ) , <EOL> ( '<STR_LIT>' , has_scripts ) , <EOL> ] </s>
