o
    ~îj¡  ã                   @  sh   d Z ddlmZ ddlZddlZddlZddlZddlZe e	¡Z
dddd	„Zddd
d„Zddd„ZdS )zPrimary application entrypoint.é    )ÚannotationsNÚargsúlist[str] | NoneÚreturnÚintc                 C  ó   t | dd�S )zGRun the CLI with imports blocked until process exit after installation.T©Úcli©Ú_main©r   © r   ú`/raid/bulk_storage/M2HATS/real-image-venv/lib/python3.10/site-packages/pip/_internal/cli/main.pyr	   )   s   r	   c                 C  r   )NFr   r
   r   r   r   r   Úmain.   s   r   Úboolc             
   C  s6  ddl m} ddlm} ddlm} ddlm} ddlm	} | d u r)t
jdd … } tjdtd	d
� | ¡  |ƒ  z|| ƒ\}}W n' |yg }	 zt
j d|	› �¡ t
j tj¡ t
 d¡ W Y d }	~	nd }	~	ww z	t tjd¡ W n tjyŠ }
 zt d|
¡ W Y d }
~
nd }
~
ww ||d|v d�}||_| |¡S )Nr   )Úautocomplete)Úparse_command)Úcreate_command)ÚPipError)Údeprecationé   Úignorez.*pkg_resources)ÚactionÚcategoryÚmodulezERROR: Ú z%Ignoring error %s when setting localez
--isolated)Úisolated)Ú pip._internal.cli.autocompletionr   Úpip._internal.cli.main_parserr   Úpip._internal.commandsr   Úpip._internal.exceptionsr   Úpip._internal.utilsr   ÚsysÚargvÚwarningsÚfilterwarningsÚDeprecationWarningÚinstall_warning_loggerÚstderrÚwriteÚosÚlinesepÚexitÚlocaleÚ	setlocaleÚLC_ALLÚErrorÚloggerÚdebugÚ_clir   )r   r	   r   r   r   r   r   Úcmd_nameÚcmd_argsÚexcÚeÚcommandr   r   r   r   2   s:   ÿ€ý€þ
r   )N)r   r   r   r   )r   r   r	   r   r   r   )Ú__doc__Ú
__future__r   r-   Úloggingr*   r"   r$   Ú	getLoggerÚ__name__r1   r	   r   r   r   r   r   r   Ú<module>   s    
