+
     h  c                   s    R t ^ RIt^ RIt^ RIt^ RIHtHtHt ^ RI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	R
.tR R ltR R ltR R ltR# )z<A single place for constructing and exposing the main parserN)ListOptionalTuple)get_runnable_pip)
cmdoptions)ConfigOptionParserUpdatingDefaultsHelpFormatter)commands_dictget_similar_commands)CommandError)get_pip_versionget_progcreate_main_parserparse_commandc                s$    V ^8  d   QhR\         /# )   return)r   Zformat   "B/usr/lib/python3.14/site-packages/pip/_internal/cli/main_parser.py__annotate__r      s      .     c                 s   \        RR\        4       R\        4       R7      p V P                  4        \	        4       V n        \        P                  ! \        P                  V 4      pV P                  V4       RV n
        R.\        P                  ! 4        UUu. uF  w  r#VR RVP                   2NK  	  upp,           pR	P                  V4      V n        V # u uppi )
z1Creates and returns the main parser for pip's CLIz
%prog <command> [options]FZglobal)ZusageZadd_help_optionZ	formatternameZprogTZ Z27Z Z
)r   r   r   Zdisable_interspersed_argsr
   versionr   Zmake_option_groupZgeneral_groupZadd_option_groupZmainr   ZitemsZsummaryjoindescription)parserZgen_optsr   Zcommand_infor   s        r   r   r      s      +/1ZF $$&$&FN ++J,D,DfMH
H% FK $"/"5"5"7"7D )1\))*+"7 K ;/FMs   Cc                sF    V ^8  d   QhR\         R\        \         ,          /# )r   pythonr   )strr   r   r   r   r   r   1   s        r   c                 sD   \         P                  P                  V 4      '       d{   \         P                  P                  V 4      '       dT   R FK  p\         P                  P	                  W4      p\         P                  P                  V4      '       g   KI  Vu # 	  R# V # R# )
bin/pythonN)r   zScripts/python.exe)osZpathZexistsZisdirr   )r   ZexeZpys   &  r   identify_python_interpreterr   1   sq     
ww~~f77==   <WW\\&.77>>"%%I <  M r   c                s~    V ^8  d   QhR\         \        ,          R\        \        \         \        ,          3,          /# )r   argsr   )r    r   r   r   r   r   r   r   D   s/     A AS	 AeCcN&; Ar   c                 s   \        4       pVP                  V 4      w  r#VP                  '       d   R \        P                  9  d   \        VP                  4      pVf   \        RVP                   24      hV\        4       .pVP                  V 4       R\        P                  R &   ^ p \        P                  ! V4      pVP                  p\        P                  ! T4       VP                   '       dl   \        P"                  P%                  VP                   4       \        P"                  P%                  \        P&                  4       \        P                  ! 4        V'       d   V^ ,          R8X  d6   \)        V4      ^8X  d&   VP+                  4        \        P                  ! 4        V^ ,          p	V	\,        9  dJ   \/        V	4      p
RV	 R2.pV
'       d   VP1                  R	V
 R24       \        R
P3                  V4      4      hV R,          pVP5                  V	4       W3#   \        P                  \        3 d   p\        RT RT 24      hRp?ii ; i)Z_PIP_RUNNING_IN_SUBPROCESSNz$Could not locate Python interpreter Z1zFailed to run pip under z: Zhelpzunknown command "Z"zmaybe you meant "z - :NNN)r   Z
parse_argsr   r   Zenvironr   r	   r   Zextend
subprocessZrun
returncodeZSubprocessErrorZOSErrorsysZexitr   ZstdoutZwriteZlinesepZlenZ
print_helpr   r   Zappendr   Zremove)r   r   Zgeneral_optionsZ	args_elseZinterpreterZpip_cmdr!   ZprocZexcZcmd_nameZguessZmsgZcmd_argss   &            r   r   r   D   s   !F "(!2!24!8O ">bjj"P1/2H2HI67M7M6NO 
 
 	t 47

/0
	P>>'*DJ 	 

(

$
 1/C	Na4G
 |H}$$X."8*A./JJ*5'345::c?++ AwHOOH? **G4 	P!9+bNOO	Ps   )"H# #I>II)Z__doc__r   r    r"   Ztypingr    r   r   Zpip._internal.build_envr   Zpip._internal.clir   Zpip._internal.cli.parserr   r   Zpip._internal.commandsr   r   Zpip._internal.exceptionsr	   Zpip._internal.utils.miscr
   r   Z__all__r   r   r   ) r   r   <module>r#      sC    B 	  
 ( ( 4 ( V F 1 >
1>&Ar   