a DOg"@sddlZddlZddlmZddlTddlmZddlmZddl 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_nameZscriptr3/opt/alt/python39/lib64/python3.9/distutils/core.py gen_usage s r) distclassr script_argsZoptionsnameversionZauthorZ author_emailZ maintainerZmaintainer_emailZurllicenseZ 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|vr8tjtjd|d<d|vrRtjdd|d<z||a}WnNty}z6d|vrt d|nt d|d|fWYd}~n d}~00t d kr|S| t rt d |t d kr|Sz |}Wn<ty.}z"t t|jd |WYd}~n d}~00t rFt d |t dkrT|S|rz |Wntyt dYnty}z6t rtjd|fnt d|fWYd}~nLd}~0ttfy}z&t rnt dt|WYd}~n d}~00|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)attrsklassZdistmsgokexcrrrsetup9sd%   ,   "&r,runcCs|dvrtd|f|atj}d|i}zxzf|tjd<|durP|tjdd<t|d}t||Wdn1s~0YW|t_dan |t_da0WntyYn0t durt d|t S)N)rrrr-z"invalid value for 'stop_after': %r__file__rrrbzZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?) ValueErrorr rrcopyopenexecreadrr RuntimeError)r rZ stop_afterZ save_argvgfrrr run_setups.   .  r8)Nr-)rrZdistutils.debugrZdistutils.errorsZdistutils.distrZ distutils.cmdrZdistutils.configrZdistutils.extensionrr rr rZsetup_keywordsZextension_keywordsr,r8rrrr s      q