a XC?h�"�@s�ddlZddlZddlmZddlTddlmZddlmZddl m Z ddl m Z dZ d d �Zdadad Zd Zd d�Zddd�ZdS)�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 cCstj�|�}tt�S)N)�os�path�basename�USAGE�vars)� script_nameZscript�r�3/opt/alt/python39/lib64/python3.9/distutils/core.py� gen_usage s r)� distclassr � script_argsZoptions�name�versionZauthorZ author_emailZ maintainerZmaintainer_emailZurl�licenseZ descriptionZlong_description�keywordsZ 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|vr8tj�tjd�|d<d|vrRtjdd�|d<z||�a}WnNty�}z6d|vr�t d|��nt d|d|f��WYd}~n d}~00t d kr�|S|� �t r�t d �|��t d kr�|Sz |��}Wn<t�y.}z"t t|j�d |��WYd}~n d}~00t �rFt d �|��t dk�rT|S|�rz |��Wn�t�y�t d��Yn�t�y�}z6t �r�tj�d|f��nt d|f��WYd}~nLd}~0ttf�y}z&t �r�nt dt|���WYd}~n d}~00|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)�attrs�klassZdist�msg�ok�excrrr�setup9sd%  � ,   "�&r,�runcCs�|dvrtd|f��|atj��}d|i}zxzf|tjd<|durP|tjdd�<t|d��}t|��|�Wd�n1s~0YW|t_dan |t_da0Wnty�Yn0t dur�t d|��t S)N)rrrr-z"invalid value for 'stop_after': %r�__file__rr�rbzZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?) � ValueErrorr rr�copy�open�exec�readrr� RuntimeError)r rZ stop_afterZ save_argv�g�frrr� run_setup�s.   .�  �r8)Nr-)rrZdistutils.debugrZdistutils.errorsZdistutils.distrZ distutils.cmdrZdistutils.configrZdistutils.extensionrr rr rZsetup_keywordsZextension_keywordsr,r8rrrr� s      q