
    ;e"                         	 d dl Z d dlZd dlmZ d dlT d dlmZ d dlmZ d dl	m
Z
 d dlmZ dZd	 Zdadad
ZdZd ZddZdS )    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
c                 l    t           j                            |           }t          t	                      z  S )N)ospathbasenameUSAGEvars)script_namescripts     %/usr/lib/python3.11/distutils/core.py	gen_usager       s%    Wk**F466>    )	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)r   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                     	 |                      d          }|r| d= nt          }d| vr2t          j                            t
          j        d                   | d<   d| vrt
          j        dd          | d<   	  ||           xa}nC# t          $ r6}d| vrt          d|z            t          d| d         d	|          d }~ww xY wt          d
k    r|S |                                 t          r#t          d           |                                 t          dk    r|S 	 |                                }n9# t           $ r,}t          t#          |j                  d|z  z             d }~ww xY wt          r#t          d           |                                 t          dk    r|S |r	 |                                 n# t(          $ r t          d          t*          $ rB}t          r$t
          j                            d|d            t          d|          d }~wt0          t2          f$ r,}t          r t          dt5          |          z             d }~ww xY w|S )Nr   r   r   r      r   zerror in setup command: %sz	error in z setup command: initz%options (after parsing config files):configz

error: %sz%options (after parsing command line):commandlineinterruptedzerror: 
)getr   r
   r   r   sysargv_setup_distributionDistutilsSetupError
SystemExit_setup_stop_afterparse_config_filesr   printdump_option_dictsparse_command_lineDistutilsArgErrorr   r   run_commandsKeyboardInterruptOSErrorstderrwriteDistutilsErrorCCompilerErrorstr)attrsklassdistmsgokexcs         r   setuprW   9   s   H IIk""E +E!!!w//<<mU"""x|m(%*U5\\1dd ( ( (9C?@@@*===##' ( ( (	( F"" 	 !5666   H$$
L$$&& L L L4#344}s7JJKKKL  !5666   M)) 
 7	7  	, 	, 	,]+++ 	7 	7 	7 7
   ###!7888 j!5666  	7 	7 	7 7 SXX!5666	7 KsT   6B 
C1B??C D5 5
E+?'E&&E+(F= ="I=HI0'IIrunc                    	 |dvrt          d|          |at          j                                        }d| i}	 	 | t          j        d<   ||t          j        dd <   t          | d          5 }t          |                                |           d d d            n# 1 swxY w Y   |t          _        d an# |t          _        d aw xY wn# t          $ r Y nw xY wt          t          d| z            t          S )N)r8   r9   r:   rX   z invalid value for 'stop_after': __file__r   r7   rbzZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?)
ValueErrorrC   r>   r?   copyopenexecreadrB   r@   RuntimeError)r   r   
stop_after	save_argvgfs         r   	run_setuprf      sq   < AAAjMNNN #I	[!A	%%CHQK&*k4(( "AQVVXXq!!!" " " " " " " " " " " " " " " !CH $ !CH $$$$$    	
 " ?   	 sG   2B9 0#BB9 B##B9 &B#'B9 *C 9C		C 
CC)NrX   )r
   r>   distutils.debugr   distutils.errorsdistutils.distr   distutils.cmdr   distutils.configr   distutils.extensionr   r   r   rC   r@   setup_keywordsextension_keywordsrW   rf    r   r   <module>rp      s    
			 



 ! ! ! ! ! !     ( ' ' ' ' ' ! ! ! ! ! ! * * * * * * ) ) ) ) ) )	     L l l lb> > > > > >r   