Ë
    ��hŸ   ã                   ód  — d 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 ddlm	Z	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mZ dd
l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*m-Z-m.Z. ddl/m0Z0 dgZ1 ejd                  e3«      Z4 G d„ de«      Z5y)z(Base Command class, and related routinesé    N)ÚValues)ÚListÚOptionalÚTuple)Úreconfigure)Ú	traceback)Ú
cmdoptions)ÚCommandContextMixIn)ÚConfigOptionParserÚUpdatingDefaultsHelpFormatter)Ú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eed<   dZeed<   ddedededd	fˆ fd
„Zdd„Z	de
dd	fd„Zde
dee   defd„Zdede
dee   defd„Zdee   dee
ee   f   fd„Zdee   defd„Zdee   defd„Zˆ xZS )r    Ú ÚusageFÚignore_require_venvÚnameÚsummaryÚisolatedÚreturnNc           	      ó  •— 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_optionr%   Údescriptionr'   z Options)ÚsuperÚ__init__r%   r&   r   r#   r   r   Ú__doc__Úparserr   Ú
capitalizeÚoptparseÚOptionGroupÚcmd_optsr	   Úmake_option_groupÚgeneral_groupÚadd_option_groupÚadd_options)Úselfr%   r&   r'   Úoptgroup_nameÚgen_optsÚ	__class__s         €ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pip/_internal/cli/base_command.pyr0   zCommand.__init__0   sÖ   ø€ Ü‰ÑÔàˆŒ	ØˆŒÜ(Ø—*‘*Ü“J�<˜q  Ð'Ü3Ó5Ø!ØØŸ™Øô
ˆŒð <@ˆÔð  Ÿ9™9×/Ñ/Ó1Ð2°(Ð;ˆÜ ×,Ñ,¨T¯[©[¸-ÓHˆŒô ×/Ñ/Ü×$Ñ$Ø�K‰Kó
ˆð 	�‰×$Ñ$ XÔ.à×ÑÕó    c                  ó   — y ©N© )r;   s    r?   r:   zCommand.add_optionsN   s   € Ør@   Úoptionsc                 ó    — t        |d«      rJ ‚y)zf
        This is a no-op so that commands by default do not do the pip version
        check.
        Úno_indexN)Úhasattr)r;   rD   s     r?   Úhandle_pip_version_checkz Command.handle_pip_version_checkQ   s   € ô ˜7 JÔ/Ð/Ð/Ð/r@   Úargsc                 ó   — t         ‚rB   )ÚNotImplementedError)r;   rD   rI   s      r?   ÚrunzCommand.runZ   s   € Ü!Ð!r@   Úlevel_numberc                 ó   ‡ ‡‡— dt         fˆˆˆ 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'        d
t(        j*                  ¬«       |t,        j.                  k  r$t1        j2                  t(        j*                  ¬«       t        cY S t4        $ r5 t        j                  d«       t        j                  dd¬	«       t        cY S t6        $ r  t        j                  dd¬	«       t8        cY S w xY w)Nr(   c                  óx   •— 	 ‰j                  ‰‰ «      ‰j                  ‰«       S # ‰j                  ‰«       w xY wrB   )rL   rH   )rI   rD   r;   s   €€€r?   Ú
_inner_runz(Command._run_wrapper.<locals>._inner_run^   s3   ø€ ð7Ø—x‘x ¨Ó.à×-Ñ-¨gÕ6ø�×-Ñ-¨gÕ6ús   ƒ& ¦9T)Úshow_localsz%sÚrich)ÚextrazException information:)Úexc_infoz ERROR: Pipe to stdout was broken)ÚfilezOperation cancelled by userz
Exception:)ÚintÚ
debug_modeÚrich_tracebackÚinstallÚ
isinstancer   ÚloggerÚerrorÚdebugr   r   ÚcriticalÚstrr   r   r   r   r   r   ÚprintÚsysÚstderrÚloggingÚDEBUGr   Ú	print_excÚKeyboardInterruptÚBaseExceptionr   )r;   rM   rD   rI   rP   ÚstatusÚexcs   ` ``   r?   Ú_run_wrapperzCommand._run_wrapper]   s«  ú€ ð	7œC÷ 	7ð ×ÒÜ×"Ñ"¨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ûÜ'ò 	ô Ð4¼3¿:¹:ÕFØœwŸ}™}Ò,Ü×#Ñ#¬¯©Õ4äŠLÜ ò 	Ü�O‰OÐ9Ô:Ü�L‰LÐ1¸DˆLÔAäŠLÜò 	!Ü�O‰O˜L°4ˆOÔ8ä Ò ð	!úsf   ¼A Á	IÁ 6BÂIÂIÂ(:C(Ã"IÃ(IÃ?:D?Ä9IÄ?IÅ2FÅ=IÆA$IÇ):IÈ%%IÉIc                 ó8   — | j                   j                  |«      S rB   )r2   Ú
parse_args©r;   rI   s     r?   rl   zCommand.parse_args–   s   € à�{‰{×%Ñ% dÓ+Ð+r@   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rB   )Úmain_contextÚ_mainrc   Úshutdownrm   s     r?   ÚmainzCommand.mainš   sg   € ð	Ø×"Ñ"Ó$ñ (Ø—z‘z $Ó'÷(ð (ô ×ÑÕ÷(ð (úð (ô ×ÑÕøŒG×ÑÕús!   ‚A# ’A£	A# ÁA
ÁA# Á#A9c                 ó  — | j                  t        «       «      | _        | j                  t        «       «       | j                  |«      \  }}|j                  |j
                  z
  | _        |j                  rd| _        t        |j                  ¬«       t        | j                  |j                  |j                  ¬«      }t        |j                  «      t        t        j                  «      z  }|r.t         j#                  ddj%                  t'        |«      «      «       |j(                  r@dt*        j,                  vr.t         j/                  d«       t1        j2                  t4        «       |j6                  rdt*        j,                  d	<   |j8                  r,d
j%                  |j8                  «      t*        j,                  d<   |j:                  rD| j<                  s8t?        «       s.t         j/                  d«       t1        j2                  t@        «       |jB                  rVtE        |jB                  «      |_!        tG        |jB                  «      s't         j#                  d|jB                  «       d |_!        | jI                  |||«      S )Né   )Úno_color)Ú	verbosityru   Ú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   rl   ÚverboseÚquietrv   rW   r   ru   r   ÚlogÚsetÚfeatures_enabledr	   ÚALWAYS_ENABLED_FEATURESr[   ÚwarningÚjoinÚsortedÚpythonÚosÚenvironr^   ra   Úexitr   Úno_inputÚexists_actionÚrequire_venvr$   r   r   Ú	cache_dirr   r   rj   )r;   rI   rD   rM   Úalways_enabled_featuress        r?   rp   zCommand._main¡   sì  € ð !%× 2Ñ 2Ô3CÓ3EÓ FˆÔð 	×ÑÔ1Ó3Ô4àŸ™¨Ó-‰ˆ�ð !Ÿ™¨7¯=©=Ñ8ˆŒØ×ÒØˆDŒNä˜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¸Ó=Ð=r@   )F)r(   N)Ú__name__Ú
__module__Ú__qualname__r#   r_   Ú__annotations__r$   Úboolr0   r:   r   rH   r   rV   rL   rj   r   rl   rr   rp   Ú__classcell__)r>   s   @r?   r    r    ,   së   ø… Ø€Eˆ3ƒOØ %Ð˜Ó%ñ˜Sð ¨3ð ¸$ð È4õ ó<ð0°ð 0¸4ó 0ð"˜6ð "¨¨c©ð "°só "ð7!¨ð 7!°vð 7!ÀTÈ#ÁYð 7!ÐSVó 7!ðr,˜t C™yð ,¨U°6¸4À¹9Ð3DÑ-Eó ,ð˜˜c™ð  só ðH>˜$˜s™)ð H>¨÷ H>r@   )6r1   rc   Úlogging.configr4   r‡   ra   r   r   Útypingr   r   r   Úpip._vendor.richr   rX   Úpip._internal.clir	   Ú!pip._internal.cli.command_contextr
   Úpip._internal.cli.parserr   r   Úpip._internal.cli.status_codesr   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�   r[   r    rC   r@   r?   ú<module>r¥      s‚   ðÙ .ã Û Û Û 	Û 
Û Ý ß (Ñ (å (Ý 8å (Ý Aß V÷ó ÷÷ õ <ß Oß =Ý Uß QÝ Càˆ+€à	ˆ×	Ñ	˜8Ó	$€ô}>Ð!õ }>r@   