Ë
    äO´j×$  ã                  óx  — 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ddlZddl	Z	ddl
mZmZ ddlmZ ddlmZ ddlm	Z ddlmZ dd	lmZ dd
lmZmZ ddlmZmZmZmZmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z& ddl'm(Z(m)Z) ddl*m+Z+m,Z, ddl-m.Z/ ddl-m0Z0m1Z1 ddl2m3Z3 dgZ4 ejj                  e6«      Z7 G d„ de«      Z8y)z(Base Command class, and related routinesé    )ÚannotationsN)ÚCallableÚIterator)ÚValues)Úreconfigure)Ú	traceback)Ú
cmdoptions)ÚCommandContextMixIn)ÚConfigOptionParserÚUpdatingDefaultsHelpFormatter)ÚBROKEN_STDOUTÚERRORÚPREVIOUS_BUILD_DIR_ERRORÚUNKNOWN_ERRORÚVIRTUALENV_NOT_FOUND)Ú
BadCommandÚCommandErrorÚDiagnosticPipErrorÚInstallationErrorÚNetworkConnectionErrorÚPreviousBuildDirError)Úcheck_path_owner)ÚBrokenStdoutLoggingErrorÚsetup_logging)Úget_progÚnormalize_path)ÚTempDirectoryTypeRegistry)Úglobal_tempdir_managerÚtempdir_registry)Úrunning_under_virtualenvÚCommandc                  óž   ‡ — e Zd ZU dZded<   dZded<   ddˆ fd„Zdd„Zej                  dd	„«       Z
dd
„Zdd„Zdd„Zdd„Zdd„Zdd„Zˆ xZS )r!   Ú ÚstrÚusageFÚboolÚignore_require_venvc           	     ó  •— t         ‰| �  «        || _        || _        t	        | j
                  t        «       › d|› �t        «       d|| j                  |¬«      | _	        d | _
        | j                  j                  «       › d�}t        j                  | j                  |«      | _        t        j                   t        j"                  | j                  «      }| j                  j%                  |«       | j'                  «        y )Nú F)r%   ÚprogÚ	formatterÚadd_help_optionÚnameÚdescriptionÚisolatedz Options)ÚsuperÚ__init__r-   Úsummaryr   r%   r   r   Ú__doc__Úparserr   Ú
capitalizeÚoptparseÚOptionGroupÚcmd_optsr	   Úmake_option_groupÚgeneral_groupÚadd_option_groupÚadd_options)Úselfr-   r2   r/   Úoptgroup_nameÚgen_optsÚ	__class__s         €úu/var/www/origus_pro_usr/data/www/origus.pro/core/.venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.pyr1   zCommand.__init__4   sÕ   ø€ Ü‰ÑÔàˆŒ	ØˆŒÜ(Ø—*‘*Ü“J�<˜q  Ð'Ü3Ó5Ø!ØØŸ™Øô
ˆŒð 9=ˆÔð  Ÿ9™9×/Ñ/Ó1Ð2°(Ð;ˆÜ ×,Ñ,¨T¯[©[¸-ÓHˆŒô ×/Ñ/Ü×$Ñ$Ø�K‰Kó
ˆð 	�‰×$Ñ$ XÔ.à×ÑÕó    c                 ó   — y ©N© ©r=   s    rA   r<   zCommand.add_optionsR   s   € ØrB   c              #  ó0   K  — t        |d«      rJ ‚d–— y­w)zf
        This is a no-op so that commands by default do not do the pip version
        check.
        Úno_indexN)Úhasattr©r=   ÚoptionsÚargss      rA   Úpip_version_checkzCommand.pip_version_checkU   s   è ø€ ô ˜7 JÔ/Ð/Ð/Üùs   ‚c                ó   — t         ‚rD   )ÚNotImplementedErrorrJ   s      rA   ÚrunzCommand.run`   s   € Ü!Ð!rB   c                ó  ‡ ‡‡— dˆˆˆ fd„}‰j                   rt        j                  d¬«        |«       S 	  |«       }t        |t        «      sJ ‚|S # t
        $ rA}t        j                  d|ddi¬«       t        j                  dd¬«       t        cY d }~S d }~wt        $ rE}t        j                  t        |«      «       t        j                  dd¬«       t        cY d }~S d }~wt        t        t         f$ rE}t        j                  t        |«      «       t        j                  dd¬«       t        cY d }~S d }~wt"        $ r=}t        j                  d|«       t        j                  dd¬«       t        cY d }~S d }~wt$        $ �r 	 t'        j(                  d	d
«       |t*        j,                  k  rWt/        t0        j2                  dd «      xs d}t'        j(                  d	t5        j6                  «       j9                  |d«      «       n# t:        $ r Y nw xY wt'        j<                  t&        j>                  t&        j@                  «      }	 t'        jB                  |d«       t'        jD                  |«       n# t'        jD                  |«       w xY wtF        cY S tH        $ r5 t        j                  d«       t        j                  dd¬«       t        cY S tJ        $ r  t        j                  dd¬«       tL        cY S w xY w)Nc                 óx   •— ‰j                  ‰‰ «      5  ‰j                  ‰‰ «      cd d d «       S # 1 sw Y   y xY wrD   )rM   rP   )rL   rK   r=   s   €€€rA   Ú
_inner_runz(Command._run_wrapper.<locals>._inner_rund   s6   ø€ Ø×'Ñ'¨°Ó6ñ /Ø—x‘x ¨Ó.÷/÷ /ò /ús   ”0°9T)Úshow_localsz%sÚrich)ÚextrazException information:)Úexc_infoé   s!   ERROR: Pipe to stdout was broken
Úencodingzutf-8Úbackslashreplaceé   zOperation cancelled by userz
Exception:)ÚreturnÚint)'Ú
debug_modeÚrich_tracebackÚinstallÚ
isinstancer]   r   ÚloggerÚerrorÚdebugr   r   Úcriticalr$   r   r   r   r   r   r   ÚosÚwriteÚloggingÚDEBUGÚgetattrÚsysÚstderrr   Ú
format_excÚencodeÚOSErrorÚopenÚdevnullÚO_WRONLYÚdup2Úcloser   ÚKeyboardInterruptÚBaseExceptionr   )	r=   Úlevel_numberrK   rL   rS   ÚstatusÚexcrY   rq   s	   ` ``     rA   Ú_run_wrapperzCommand._run_wrapperc   s/  ú€ ÷	/ð ×ÒÜ×"Ñ"¨tÕ4Ù“<Ðð;	!Ù“\ˆFÜ˜f¤cÔ*Ð*Ð*ØˆMøÜ!ò 	Ü�L‰L˜˜s¨6°4¨.ˆLÔ9Ü�L‰LÐ1¸DˆLÔAä�LûÜ$ò 	,Ü�O‰OœC ›HÔ%Ü�L‰LÐ1¸DˆLÔAä+Õ+ûäÜÜ"ð
ò 	ô
 �O‰OœC ›HÔ%Ü�L‰LÐ1¸DˆLÔAä�LûÜò 	Ü�O‰O˜D #Ô&Ü�L‰LÐ1¸DˆLÔAä�LûÜ'ó 	!ðÜ—‘˜ÐAÔBØ¤7§=¡=Ò0Ü&¤s§z¡z°:¸tÓDÒOÈ�HÜ—H‘HØœ9×/Ñ/Ó1×8Ñ8¸ÐCUÓVôùô ò Ùðúô
 —g‘gœbŸj™j¬"¯+©+Ó6ˆGð"Ü—‘˜ Ô#ä—‘˜Õ!ø”—‘˜Õ!úä Ò Ü ò 	Ü�O‰OÐ9Ô:Ü�L‰LÐ1¸DˆLÔAäŠLÜò 	!Ü�O‰O˜L°4ˆOÔ8ä Ò ð	!ús¢   ¶A Á	L Á6BÂL ÂL Â":C"ÃL Ã"L Ã9:D9Ä3L Ä9L Å2E=Å7L Å=L ÆB HÈL È	HÈL ÈHÈ5L ÉI:É$L É:JÊ	L Ê:L Ë%L Ë?L c                ó8   — | j                   j                  |«      S rD   )r4   Ú
parse_args©r=   rL   s     rA   r|   zCommand.parse_args©   s   € à�{‰{×%Ñ% dÓ+Ð+rB   c                óø   — 	 | j                  «       5  | j                  |«      cd d d «       t        j                  «        S # 1 sw Y   nxY w	 t        j                  «        y # t        j                  «        w xY wrD   )Úmain_contextÚ_mainrh   Úshutdownr}   s     rA   ÚmainzCommand.main­   sg   € ð	Ø×"Ñ"Ó$ñ (Ø—z‘z $Ó'÷(ð (ô ×ÑÕ÷(ð (úð (ô ×ÑÕøŒG×ÑÕús!   ‚A# ’A£	A# ÁA
ÁA# Á#A9c                ór  — | j                  t        «       «      | _        | j                  t        «       «       | j                  |«      \  }}|j                  |j
                  z
  | _        |j                  rd| _        t        |d«      r'|j                  dk(  r| j                  dk\  rdnd|_	        t        |j                  ¬«       t        | j                  |j                  |j                  ¬«      }t        |j                  «      t        t         j"                  «      z  }|r.t$        j'                  d	d
j)                  t+        |«      «      «       |j,                  r@dt.        j0                  vr.t$        j3                  d«       t5        j6                  t8        «       |j:                  rdt.        j0                  d<   |j<                  r,dj)                  |j<                  «      t.        j0                  d<   |j>                  rD| j@                  s8tC        «       s.t$        j3                  d«       t5        j6                  tD        «       |jF                  rVtI        |jF                  «      |_#        tK        |jF                  «      s't$        j'                  d|jF                  «       d |_#        | jM                  |||«      S )NrX   Úprogress_barÚautor   ÚonÚoff)Úno_color)Ú	verbosityrˆ   Úuser_log_filez/The following features are always enabled: %s. z, Ú_PIP_RUNNING_IN_SUBPROCESSzAThe --python option must be placed before the pip subcommand nameÚ1ÚPIP_NO_INPUTr)   ÚPIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).zêThe directory '%s' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.)'Úenter_contextr   r   r|   ÚverboseÚquietr‰   r^   rI   r„   r   rˆ   r   ÚlogÚsetÚfeatures_enabledr	   ÚALWAYS_ENABLED_FEATURESrb   ÚwarningÚjoinÚsortedÚpythonrf   Úenvironre   rk   Úexitr   Úno_inputÚexists_actionÚrequire_venvr'   r    r   Ú	cache_dirr   r   rz   )r=   rL   rK   rw   Úalways_enabled_featuress        rA   r€   zCommand._main´   s  € ð !%× 2Ñ 2Ô3CÓ3EÓ FˆÔð 	×ÑÔ1Ó3Ô4àŸ™¨Ó-‰ˆ�ð !Ÿ™¨7¯=©=Ñ8ˆŒØ×ÒØˆDŒNä�7˜NÔ+°×0DÑ0DÈÒ0NØ+/¯>©>¸QÒ+>¡4ÀEˆGÔ ä˜W×-Ñ-Õ.Ü$Ø—n‘nØ×%Ñ%Ø!Ÿ+™+ô
ˆô #& g×&>Ñ&>Ó"?Ä#Ü×.Ñ.óC
ñ #
Ðñ #Ü�N‰NØAØ—	‘	œ&Ð!8Ó9Ó:ôð �>Š>Ð:Ä"Ç*Á*ÑLÜ�O‰OØSôô �H‰H”UŒOð ×ÒØ),ŒB�J‰J�~Ñ&à× Ò Ø.1¯h©h°w×7LÑ7LÓ.MŒB�J‰JÐ*Ñ+à×Ò¨×(@Ò(@ä+Ô-Ü—‘Ð TÔUÜ—‘Ô-Ô.à×ÒÜ .¨w×/@Ñ/@Ó AˆGÔÜ# G×$5Ñ$5Ô6Ü—‘ð*ð
 ×%Ñ%ôð %)�Ô!à× Ñ  ¨w¸Ó=Ð=rB   c                ó   — i S )zO
        map of names to handler actions for commands with sub-actions
        rE   rF   s    rA   Úhandler_mapzCommand.handler_map  s	   € ð ˆ	rB   )F)r-   r$   r2   r$   r/   r&   r\   ÚNone)r\   r£   )rK   r   rL   ú	list[str]r\   zIterator[None])rK   r   rL   r¤   r\   r]   )rw   r]   rK   r   rL   r¤   r\   r]   )rL   r¤   r\   ztuple[Values, list[str]])rL   r¤   r\   r]   )r\   z.dict[str, Callable[[Values, list[str]], None]])Ú__name__Ú
__module__Ú__qualname__r%   Ú__annotations__r'   r1   r<   Ú
contextlibÚcontextmanagerrM   rP   rz   r|   r‚   r€   r¢   Ú__classcell__)r@   s   @rA   r!   r!   0   s]   ø… Ø€Eˆ3ƒOØ %Ð˜Ó%öó<ð ×Ñòó ðó"óD!óL,óóK>÷ZrB   )9r3   Ú
__future__r   r©   rh   Úlogging.configr6   rf   rk   r   Úcollections.abcr   r   r   Úpip._vendor.richr   r_   Úpip._internal.clir	   Ú!pip._internal.cli.command_contextr
   Úpip._internal.cli.parserr   r   Úpip._internal.cli.status_codesr   r   r   r   r   Úpip._internal.exceptionsr   r   r   r   r   r   Úpip._internal.utils.filesystemr   Úpip._internal.utils.loggingr   r   Úpip._internal.utils.miscr   r   Úpip._internal.utils.temp_dirr   ÚTempDirRegistryr   r   Úpip._internal.utils.virtualenvr    Ú__all__Ú	getLoggerr¥   rb   r!   rE   rB   rA   ú<module>r½      s…   ðÙ .å "ã Û Û Û Û 	Û 
Û ß .Ý å (Ý 8å (Ý Aß V÷õ ÷÷ õ <ß Oß =Ý Uß QÝ Càˆ+€à	ˆ×	Ñ	˜8Ó	$€ôUÐ!õ UrB   