o ?Og"@s ddlZddlZddlmZddlTddlmZddlmZddl m Z ddl m Z dZ d d Zdadad Zd Zd dZdddZdS)N)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 cCstj|}ttS)N)ospathbasenameUSAGEvars) script_nameZscriptr5/opt/alt/python310/lib64/python3.10/distutils/core.py gen_usage s  r) distclassr script_argsZoptionsnameversionZauthorZ author_emailZ maintainerZmaintainer_emailZurllicense descriptionZlong_descriptionkeywordsZ platformsZ classifiersZ download_urlZrequiresZprovidesZ obsoletes)rZsourcesZ include_dirsZ define_macrosZ undef_macrosZ library_dirsZ librariesZruntime_library_dirsZ extra_objectsZextra_compile_argsZextra_link_argsZ swig_optsZexport_symbolsZdependsZlanguagec Ks |d}|r |d=nt}d|vrtjtjd|d<d|vr*tjdd|d<z||a}Wn tyR}zd|vrDt d|t d|d|fd}~wwt d krY|S| t rgt d |t d krm|Sz|}Wnty}z t t|jd |d}~wwt rt d |t dkr|S|rz|W|Styt dty}zt rtjd|ft d|fd}~wttfy}z t rقt dt|d}~ww|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)ZattrsklassZdistmsgokexcrrrsetup9sv $      r,runcCs |dvr td|f|atj}d|i}zs"      q