+
    <j                      f   R 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	H
t
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 routinesN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                      a a ] tR t^,t oRtRtRV3R lV 3R llltV3R lR ltV3R lR ltV3R	 lR
 lt	V3R lR lt
V3R lR ltV3R lR ltV3R lR ltV3R ltRtVtV ;t# )r     Fc                0   < V ^8  d   QhRS[ RS[ RS[RR/# )   namesummaryisolatedreturnNstrbool)format__classdict__s   "S/opt/headortail/venv/lib/python3.14/site-packages/pip/_internal/cli/base_command.py__annotate__Command.__annotate__0   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)usageprog	formatteradd_help_optionr%   descriptionr'   Nz Options)super__init__r%   r&   r   r4   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.   r:   Command.__init__0   s    	(**J<q'35!
 <@  99//12(; ,,T[[-H //$$KK
 	$$X.r1   c                   < V ^8  d   QhRR/# )r$   r(   N )r,   r-   s   "r.   r/   r0   N   s      T r1   c                    R # NrK   )rE   s   &r.   rD   Command.add_optionsN   s    r1   c                $   < V ^8  d   QhRS[ RR/# )r$   optionsr(   Nr   )r,   r-   s   "r.   r/   r0   Q   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)rE   rP   s   &&r.   handle_pip_version_check Command.handle_pip_version_checkQ   s     7J/////r1   c                <   < V ^8  d   QhRS[ RS[S[,          RS[/# )r$   rP   argsr(   )r   r   r*   int)r,   r-   s   "r.   r/   r0   Z   s&     " "6 "c "s "r1   c                    \         hrM   )NotImplementedError)rE   rP   rW   s   &&&r.   runCommand.runZ   s    !!r1   c                B   < V ^8  d   QhRS[ RS[RS[S[,          RS[ /# )r$   level_numberrP   rW   r(   )rX   r   r   r*   )r,   r-   s   "r.   r/   r0   ]   s.     7! 7! 7!v 7!T#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(   )rX   )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rM   )r[   rT   )rW   rP   rE   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   )rE   r^   rP   rW   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S[ S[,          RS[S[S[ S[,          3,          /# r$   rW   r(   )r   r*   r   r   )r,   r-   s   "r.   r/   r0      s-     , ,tCy ,U6493D-E ,r1   c                8    V P                   P                  V4      # rM   )r<   
parse_argsrE   rW   s   &&r.   r   Command.parse_args   s    {{%%d++r1   c                6   < V ^8  d   QhRS[ S[,          RS[/# r   r   r*   rX   )r,   r-   s   "r.   r/   r0      s      c 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rM   )main_context_mainru   shutdownr   s   &&r.   mainCommand.main   s_    	""$$zz$' %$  %$$ Gs!   A6 A
A6 A	A6 6Bc                6   < V ^8  d   QhRS[ S[,          RS[/# r   r   )r,   r-   s   "r.   r/   r0      s#     H> H>$s) H> H>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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\*        P,                  9  d0   \         P/                  R4       \0        P2                  ! \4        4       VP6                  '       d   R\*        P,                  R&   VP8                  '       d-   R	P%                  VP8                  4      \*        P,                  R
&   VP:                  '       dR   V P<                  '       g@   \?        4       '       g0   \         P/                  R4       \0        P2                  ! \@        4       VPB                  '       d]   \E        VPB                  4      Vn!        \G        VPB                  4      '       g(   \         P#                  RVPB                  4       RVn!        V PI                  W2V4      # )r$   )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   r   r   r   logsetfeatures_enabledr	   ALWAYS_ENABLED_FEATURESrn   warningjoinsortedpythonosenvironrq   rs   exitr   no_inputexists_actionrequire_venvignore_require_venvr   r   	cache_dirr   r   r|   )rE   rW   rP   r^   always_enabled_featuress   &&   r.   r   Command._main   s    !% 2 23C3E F 	134- !7==8DN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                2   < V ^8  d   Qh/ S[ ;R&   S[;R&   # )r$   r4   r   r)   )r,   r-   s   "r.   r/   r0   ,   s     O % r1   )r@   r%   r<   r&   r   r   )F)__name__
__module____qualname____firstlineno__r4   r   r:   rD   rT   r[   r|   r   r   r   __annotate_func____static_attributes____classdictcell____classcell__)rH   r-   s   @@r.   r    r    ,   sk     E % < 0 0" "7! 7!r, , H> H>k  r1   )6r;   ru   logging.configr>   r   rs   r   r   typingr   r   r   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    rK   r1   r.   <module>r      s    .    	 
   ( ( ( 8 ( A V   < O = U Q C+			8	$}>! }>r1   