+
    Bi"                    j   R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt ^ R
IHtHtHtHt ^ RIHtHtHtHtH t H!t! ^ RI"H#t# ^ RI$H%t%H&t& ^ RI'H(t(H)t) ^ RI*H+t, ^ RI*H-t-H.t. ^ RI/H0t0 R.t1]Pd                  ! ]34      t4 ! R R]4      t5R# )z(Base Command class, and related routines)annotationsN)Values)Callable)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                     a  ] tR t^.t$ RtR]R&   RtR]R&   RR V 3R llltR	 R
 ltR R lt	R R lt
R R ltR R ltR R ltR R ltR R ltRtV ;t# )r    strusageFboolignore_require_venvc               (    V ^8  d   QhRRRRRRRR/# )   namer!   summaryisolatedr#   returnNone )formats   "C/usr/lib/python3.14/site-packages/pip/_internal/cli/base_command.py__annotate__Command.__annotate__2   s(      S 3 $ 4     c           
     	  < \         SV `  4        Wn        W n        \	        V P
                  \        4        R V 2\        4       RVV P                  VR7      V n	        RV n
        V P                  P                  4        R2p\        P                  ! V P                  V4      V n        \        P                   ! \        P"                  V P                  4      pV P                  P%                  V4       V P'                  4        R# ) F)r"   prog	formatteradd_help_optionr'   descriptionr)   Nz 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   &&&&  r.   r9   Command.__init__2   s    	(**J<q'35!
 9=  99//12(; ,,T[[-H //$$KK
 	$$X.r1   c                   V ^8  d   QhRR/# )r&   r*   r+   r,   )r-   s   "r.   r/   r0   P   s      T r1   c                	    R # Nr,   rD   s   &r.   rC   Command.add_optionsP   s    r1   c                    V ^8  d   QhRRRR/# )r&   optionsr   r*   r+   r,   )r-   s   "r.   r/   r0   S   s     0 0 04 0r1   c                .    \        VR4      '       d   Q hR# )zN
This is a no-op so that commands by default do not do the pip version
check.
no_indexN)hasattr)rD   rO   s   &&r.   handle_pip_version_check Command.handle_pip_version_checkS   s     7J/////r1   c               $    V ^8  d   QhRRRRRR/# )r&   rO   r   args	list[str]r*   intr,   )r-   s   "r.   r/   r0   \   s!     " "6 " "s "r1   c                	    \         hrK   )NotImplementedError)rD   rO   rV   s   &&&r.   runCommand.run\   s    !!r1   c               (    V ^8  d   QhRRRRRRRR/# )r&   level_numberrX   rO   r   rV   rW   r*   r,   )r-   s   "r.   r/   r0   _   s)     7! 7! 7!v 7!Y 7!SV 7!r1   c                	  a aa R  VVV 3R llpSP                   '       d   \        P                  ! RR7       V! 4       #  V! 4       p\        V\        4      '       g   Q hV#   \
         dB   p\        P                  RTRR/R7       \        P                  RRR7       \        u R	p?# R	p?i\         dF   p\        P                  \        T4      4       \        P                  RRR7       \        u R	p?# R	p?i\        \        \         3 dF   p\        P                  \        T4      4       \        P                  RRR7       \        u R	p?# R	p?i\"         d>   p\        P                  RT4       \        P                  RRR7       \        u R	p?# R	p?i\$         d_    \'        R
\(        P*                  R7       T\,        P.                  8:  d&   \0        P2                  ! \(        P*                  R7       \        u # \4         d6    \        P                  R4       \        P                  RRR7       \        u # \6         d!    \        P                  RRR7       \8        u # i ; i)c                   V ^8  d   QhRR/# )r&   r*   rX   r,   )r-   s   "r.   r/   *Command._run_wrapper.<locals>.__annotate__`   s     	7 	7C 	7r1   c                 x   <  SP                  SS 4      SP                  S4       #   SP                  S4       i ; irK   )r[   rS   )rV   rO   rD   s   r.   
_inner_run(Command._run_wrapper.<locals>._inner_run`   s3    7xx.--g6--g6s   & 9T)show_localsz%srich)extrazException information:)exc_infoNz ERROR: Pipe to stdout was broken)filezOperation cancelled by userz
Exception:)
debug_moderich_tracebackinstall
isinstancerX   r   loggererrordebugr   r   criticalr!   r   r   r   r   r   r   printsysstderrloggingDEBUGr   	print_excKeyboardInterruptBaseExceptionr   )rD   r^   rO   rV   rc   statusexcs   f&ff   r.   _run_wrapperCommand._run_wrapper_   s   	7 	7 ""t4<,	!\Ffc****M! 	LLs64.L9LL1DLAL$ 	,OOCH%LL1DLA++"
 	
 OOCH%LL1DLAL 	OOD#&LL1DLAL' 	 43::Fw}},##4L  	OO9:LL1DLAL 	!OOL4O8  	!s     A! !I(,6B("I((I(5I(6:C60I(6I(I(:E	I(I(I(2FI(I("AI( I(	3I(>I(I('I(c                    V ^8  d   QhRRRR/# )r&   rV   rW   r*   ztuple[Values, list[str]]r,   )r-   s   "r.   r/   r0      s     , ,y ,-E ,r1   c                	8    V P                   P                  V4      # rK   )r;   
parse_argsrD   rV   s   &&r.   r   Command.parse_args   s    {{%%d++r1   c                    V ^8  d   QhRRRR/# r&   rV   rW   r*   rX   r,   )r-   s   "r.   r/   r0      s       s r1   c                	     V P                  4       ;_uu_ 4        V P                  V4      uuR R R 4       \        P                  ! 4        #   + '       g   i     M; i \        P                  ! 4        R #   \        P                  ! 4        i ; irK   )main_context_mainru   shutdownr   s   &&r.   mainCommand.main   s_    	""$$zz$' %$  %$$ Gs!   A6 A
A6 A	A6 6Bc                    V ^8  d   QhRRRR/# r   r,   )r-   s   "r.   r/   r0      s     K> K>) K> K>r1   c                	   V P                  \        4       4      V n        V P                  \        4       4       V P                  V4      w  r!VP                  VP
                  ,
          V n        VP                  '       d   ^V n        \        VR4      '       d,   VP                  R8X  d   V P                  ^ 8  d   RMRVn	        \        VP                  R7       \        V P                  VP                  VP                  R7      p\        VP                  4      \        \         P"                  4      ,          pV'       d/   \$        P'                  RRP)                  \+        V4      4      4       VP,                  '       dE   R	\.        P0                  9  d0   \$        P3                  R
4       \4        P6                  ! \8        4       VP:                  '       d   R\.        P0                  R&   VP<                  '       d-   RP)                  VP<                  4      \.        P0                  R&   VP>                  '       dR   V P@                  '       g@   \C        4       '       g0   \$        P3                  R4       \4        P6                  ! \D        4       VPF                  '       d]   \I        VPF                  4      Vn#        \K        VPF                  4      '       g(   \$        P'                  RVPF                  4       RVn#        V PM                  W2V4      # )r&   progress_barauto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_INPUTr3   PIP_EXISTS_ACTIONz2Could not find an activated virtualenv (required).zThe 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.N)'enter_contextr   r   r   verbosequietr   rj   rR   r   r   r   r   logsetfeatures_enabledr   ALWAYS_ENABLED_FEATURESrn   warningjoinsortedpythonosenvironrq   rs   exitr   no_inputexists_actionrequire_venvr$   r   r   	cache_dirr   r   r|   )rD   rV   rO   r^   always_enabled_featuress   &&   r.   r   Command._main   s1    !% 2 23C3E F 	134- !7==8DN7N++0D0D0N+/>>Q+>4EG W--.$nn%%!++
 #&g&>&>"?#..C
 #
 #NNA		&!89: >>>:"**LOOS HHUO ),BJJ~&   .1hhw7L7L.MBJJ*+(@(@(@+-- TU-. .w/@/@ AG#G$5$566*
 %% %)!  ==r1   c                   V ^8  d   QhRR/# )r&   r*   z.dict[str, Callable[[Values, list[str]], None]]r,   )r-   s   "r.   r/   r0      s      K r1   c                    / # )z?
map of names to handler actions for commands with sub-actions
r,   rL   s   &r.   handler_mapCommand.handler_map   s	     	r1   )r?   r'   r;   r(   r   r   )F)__name__
__module____qualname____firstlineno__r"   __annotations__r$   r9   rC   rS   r[   r|   r   r   r   r   __static_attributes____classcell__)rG   s   @r.   r   r   .   sQ    E3O %% <0"7!r,K>Z r1   )6r:   
__future__r   ru   logging.configr=   r   rs   r   r   typingr   pip._vendor.richr   rk   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   rn   r   r,   r1   r.   <module>r      s    . "    	 
    ( 8 ( A V   < O = U Q C+			8	$F! Fr1   