3 \¬"ã@s†ddlZddlZddlmZddlTddlmZddlmZddl m Z ddl m Z dZ d d „Zdadad3Zd4Zd.d/„Zd5d1d2„ZdS)6éN)ÚDEBUG)Ú*)Ú Distribution)ÚCommand)Ú PyPIRCCommand)Ú Extensionz°usage: %(script)s [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: %(script)s --help [cmd1 cmd2 ...] or: %(script)s --help-commands or: %(script)s cmd --help cCstjj|ƒ}ttƒS)N)ÚosÚpathÚbasenameÚUSAGEÚvars)Ú script_nameZscript©rú&/usr/lib64/python3.6/distutils/core.pyÚ gen_usage s rÚ distclassr Ú script_argsÚoptionsÚnameÚversionÚauthorÚ author_emailÚ maintainerÚmaintainer_emailÚurlÚlicenseÚ descriptionÚlong_descriptionÚkeywordsÚ platformsÚ classifiersÚ download_urlÚrequiresÚprovidesÚ obsoletesÚsourcesÚ include_dirsÚ define_macrosÚ undef_macrosÚ library_dirsÚ librariesÚruntime_library_dirsÚ extra_objectsÚextra_compile_argsÚextra_link_argsÚ swig_optsÚexport_symbolsÚdependsÚlanguagec,Ks|jdƒ}|r|d=nt}d|kr8tjjtjdƒ|d<d|krRtjdd…|d<y||ƒa}WnLtk r®}z0d|krŠt d|ƒ‚nt d|d|fƒ‚WYdd}~XnXt d kr¼|S|j ƒt rØt d ƒ|jƒt d krä|Sy |jƒ}Wn:tk �r*}zt t|jƒd |ƒ‚WYdd}~XnXt �rBt d ƒ|jƒt dk�rP|S|�ry |jƒWnªtk �r€t dƒ‚YnŽtk �rÌ}z0t �r®tjjd|fƒ‚nt d|fƒ‚WYdd}~XnBttfk �r }z t �rì‚nt dt|ƒƒ‚WYdd}~XnX|S)Nrr rrérzerror in setup command: %szerror in %s setup command: %sÚinitz%options (after parsing config files):Úconfigz error: %sz%options (after parsing command line):Ú commandlineZ interruptedz error: %s z error: %szerror: )Úgetrrr r ÚsysÚargvÚ_setup_distributionZDistutilsSetupErrorÚ SystemExitÚ_setup_stop_afterZparse_config_filesrÚprintZdump_option_dictsZparse_command_lineZDistutilsArgErrorrr Z run_commandsÚKeyboardInterruptÚOSErrorÚstderrÚwriteZDistutilsErrorZCCompilerErrorÚstr)ZattrsÚklassZdistÚmsgÚokÚexcrrrÚsetup9s`% " (   "rGÚruncCs´|d krtd|fƒ‚|atjjƒ}d|i}yZzH|tjd<|dk rP|tjdd…<t|d ƒ�}t|jƒ|ƒWdQRXWd|t_daXWntk ršYnXt dkr°t d |ƒ‚t S) Nr4r5r6rHz"invalid value for 'stop_after': %rÚ__file__rr3ÚrbzZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?)r4r5r6rH) Ú ValueErrorr<r8r9ÚcopyÚopenÚexecÚreadr;r:Ú RuntimeError)r rZ stop_afterZ save_argvÚgÚfrrrÚ run_setupªs(    rS)rr rrrrrrrrrrrrrrr r!r"r#r$)rr%r&r'r(r)r*r+r,r-r.r/r0r1r2)NrH)rr8Zdistutils.debugrZdistutils.errorsZdistutils.distrZ distutils.cmdrZdistutils.configrZdistutils.extensionrr rr<r:Zsetup_keywordsZextension_keywordsrGrSrrrrÚ s0     q