3 \"@sddlZddlZddlmZddlTddlmZddlmZddl m Z ddl m Z dZ d d Zdadad3Zd4Zd.d/Zd5d1d2ZdS)6N)DEBUG)*) Distribution)Command) PyPIRCCommand) Extensionzusage: %(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|}ttS)N)ospathbasenameUSAGEvars) script_nameZscriptr&/usr/lib64/python3.6/distutils/core.py gen_usage s r distclassr script_argsoptionsnameversionauthor author_email maintainermaintainer_emailurllicense descriptionlong_descriptionkeywords platforms classifiers download_urlrequiresprovides obsoletessources include_dirs define_macros undef_macros library_dirs librariesruntime_library_dirs extra_objectsextra_compile_argsextra_link_args swig_optsexport_symbolsdependslanguagec,Ks|jd}|r|d=nt}d|kr8tjjtjd|d<d|krRtjdd|d<y||a}WnLtk r}z0d|krt d|nt d|d|fWYdd}~XnXt d kr|S|j t rt d |jt d kr|Sy |j}Wn:tk r*}zt t|jd |WYdd}~XnXt rBt d |jt dkrP|S|ry |jWntk rt dYntk r}z0t rtjjd|fnt d|fWYdd}~XnBttfk r }z t rnt dt|WYdd}~XnX|S)Nrr rrrzerror in setup command: %szerror in %s setup command: %sinitz%options (after parsing config files):configz error: %sz%options (after parsing command line): commandlineZ interruptedz error: %s z error: %szerror: )getrrr r sysargv_setup_distributionZDistutilsSetupError SystemExit_setup_stop_afterZparse_config_filesrprintZdump_option_dictsZparse_command_lineZDistutilsArgErrorrr Z run_commandsKeyboardInterruptOSErrorstderrwriteZDistutilsErrorZCCompilerErrorstr)ZattrsklassZdistmsgokexcrrrsetup9s`% " (   "rGruncCs|d krtd|f|atjj}d|i}yZzH|tjd<|dk rP|tjdd<t|d }t|j|WdQRXWd|t_daXWntk rYnXt dkrt d |t S) Nr4r5r6rHz"invalid value for 'stop_after': %r__file__rr3rbzZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?)r4r5r6rH) ValueErrorr<r8r9copyopenexecreadr;r: RuntimeError)r rZ stop_afterZ save_argvgfrrr run_setups(    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