+
    Îi#                         ^ RI t ^ RI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 ^ RIHt ^ RIHt ^ R	IHt ]! ]4      t ! R
 R]4      tR# )    N)Values)Callable)Command)ERRORSUCCESS)CommandErrorPipError)
filesystem)	getLogger)format_sizec                     a  ] tR t^t o RtRtR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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RtV tR# ) CacheCommandaS  
Inspect and manage pip's wheel cache.

Subcommands:

- dir: Show the cache directory.
- info: Show information about the cache.
- list: List filenames of packages stored in the cache.
- remove: Remove one or more package from the cache.
- purge: Remove all items from the cache.

``<pattern>`` can be a glob expression or a package name.
Tz
        %prog dir
        %prog info
        %prog list [<pattern>] [--format=[human, abspath]]
        %prog remove <pattern>
        %prog purge
    c                   < V ^8  d   QhRR/#    returnN )format__classdict__s   "k/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/pip/_internal/commands/cache.py__annotate__CacheCommand.__annotate__(   s     
: 
:T 
:    c           	         V P                   P                  R RRRRRR7       V P                  P                  ^ V P                   4       R# )z--formatstorelist_formathumanz:Select the output format among: human (default) or abspath)actiondestdefaultchoiceshelpN)r   abspath)cmd_opts
add_optionparserinsert_option_groupselfs   &r   add_optionsCacheCommand.add_options(   sE      (M 	! 	
 	''4==9r   c                `   < V ^8  d   QhRS[ S[S[S[S[S[,          .R3,          3,          /# r   )dictstrr   r   list)r   r   s   "r   r   r   4   s1     
 
T#xc0CT0I'J"JK 
r   c           
     ~    R V P                   RV P                  RV P                  RV P                  RV P                  /# )dirinfor/   removepurge)get_cache_dirget_cache_infolist_cache_itemsremove_cache_itemspurge_cacher(   s   &r   handler_mapCacheCommand.handler_map4   sC    4%%D''D))d--T%%
 	
r   c                <   < V ^8  d   QhRS[ RS[S[,          RS[/# )r   optionsargsr   )r   r/   r.   int)r   r   s   "r   r   r   =   s&      6 c s r   c                   V P                  4       pVP                  '       g   \        P                  R 4       \        # V'       d   V^ ,          V9  d5   \        P                  RRP                  \        V4      4      4       \        # V^ ,          p W4,          ! WR,          4       \        #   \         d7   p\        P                  TP                  ^ ,          4       \        u Rp?# Rp?ii ; i)z<pip cache commands can not function since cache is disabled.zNeed an action (%s) to perform.z, :   NNN)
r:   	cache_dirloggererrorr   joinsortedr	   r>   r   )r)   r=   r>   r:   r   es   &&&   r   runCacheCommand.run=   s    &&(   LLWXL tAwk1LL1		&-. La	b2
 	  	LL#L	s   B- -C.8+C)#C.)C.c                :   < V ^8  d   QhRS[ RS[S[,          RR/# r   r=   r>   r   Nr   r/   r.   )r   r   s   "r   r   r   W   s&     ' 'V '49 ' 'r   c                j    V'       d   \        R 4      h\        P                  VP                  4       R# )Too many argumentsN)r   rC   r2   rB   r)   r=   r>   s   &&&r   r5   CacheCommand.get_cache_dirW   s#    344G%%&r   c                :   < V ^8  d   QhRS[ RS[S[,          RR/# rK   rL   )r   r   s   "r   r   r   ]   s&     ( (f (DI ($ (r   c           
     V   V'       d   \        R 4      h\        V P                  V4      4      p\        V P                  VR4      4      pV P	                  VR4      pV P	                  VR4      pV P	                  VR4      p\
        P                  ! \
        P                  ! V4      \
        P                  ! V4      ,           4      p\
        P                  ! V4      p	\        P                  ! R4      P                  VVVVVVV	R7      P                  4       p
\        P                  V
4       R# )rN   *http-v2httpwheelsa  
                    Package index page cache location (pip v23.3+): {http_cache_location}
                    Package index page cache location (older pips): {old_http_cache_location}
                    Package index page cache size: {http_cache_size}
                    Number of HTTP files: {num_http_files}
                    Locally built wheels location: {wheels_cache_location}
                    Locally built wheels size: {wheels_cache_size}
                    Number of locally built wheels: {package_count}
                )http_cache_locationold_http_cache_locationhttp_cache_sizenum_http_fileswheels_cache_locationpackage_countwheels_cache_sizeN)r   len_find_http_files_find_wheels
_cache_dirr
   r   directory_sizeformat_directory_sizetextwrapdedentr   striprC   r2   )r)   r=   r>   rZ   num_packagesrW   rX   r[   rY   r]   messages   &&&        r   r6   CacheCommand.get_cache_info]   s   344T227;<4,,Wc:;"oogyA"&//'6"B $ B$00%%&9:''(?@A
 '<<=RS OO
 V$7(? /-&;*"3   UW+ 	0 	Gr   c                :   < V ^8  d   QhRS[ RS[S[,          RR/# rK   rL   )r   r   s   "r   r   r      s&     + + +d3i +D +r   c                    \        V4      ^8  d   \        R4      hV'       d   V^ ,          pMRpV P                  W4      pVP                  R8X  d   V P	                  V4       R# V P                  V4       R# )rA   rN   rS   r   N)r^   r   r`   r   format_for_humanformat_for_abspath)r)   r=   r>   patternfiless   &&&  r   r7   CacheCommand.list_cache_items   sd    t9q=3441gGG!!'3')!!%(##E*r   c                4   < V ^8  d   QhRS[ S[,          RR/# r   ro   r   Nr/   r.   )r   r   s   "r   r   r      s     0 0d3i 0D 0r   c                x   V'       g   \         P                  R 4       R# . pV FP  p\        P                  P	                  V4      p\
        P                  ! V4      pVP                  RV RV R24       KR  	  \         P                  R4       \         P                  RP                  \        V4      4      4       R# )zNo locally built wheels cached.Nz - z ()zCache contents:

)
rC   r2   ospathbasenamer
   format_file_sizeappendrE   rF   )r)   ro   resultsfilenamewheelsizes   &&    r   rl   CacheCommand.format_for_human   s    KK9:HGG$$X.E..x8DNNSr$q12  	'(DIIfWo./r   c                4   < V ^8  d   QhRS[ S[,          RR/# rr   rs   )r   r   s   "r   r   r      s     2 2S	 2d 2r   c                t    V'       d0   \         P                  R P                  \        V4      4      4       R# R# )rv   N)rC   r2   rE   rF   )r)   ro   s   &&r   rm   CacheCommand.format_for_abspath   s#    KK		&-01 r   c                :   < V ^8  d   QhRS[ RS[S[,          RR/# rK   rL   )r   r   s   "r   r   r      s&     1: 1:& 1:S	 1:d 1:r   c                   \        V4      ^8  d   \        R4      hV'       g   \        R4      hV P                  W^ ,          4      pRpV^ ,          R8X  d   W0P                  V4      ,          pMVRV^ ,           R2,          pV'       g   \        P                  V4       ^ pV FV  pV\        P                  ! V4      P                  ,          p\        P                  ! V4       \        P                  RV4       KX  	  \        P                  ! V P                  VR4      4      p\        P                  ! V P                  VR	4      4      p. VOVOp	V	 FS  p
 V
P                  4        F  pVP                  R
R7       K  	  V
P!                  4        \        P                  RV
4       KU  	  V P                  VR4      p\        P$                  P'                  V4      '       d,   \        P(                  ! V4       \        P                  R4       \        P+                  R\        V4      \-        V4      4       \        P+                  R\        V	4      4       R#   \"         d     Li ; i)rA   rN   zPlease provide a patternzNo matching packagesrS   z for pattern ""z
Removed %srU   rV   T)
missing_okzselfcheck.jsonz"Removed legacy selfcheck.json filezFiles removed: %s (%s)zDirectories removed: %sN)r^   r   r`   r_   rC   warningrw   statst_sizeunlinkverboser
   subdirs_without_filesra   subdirs_without_wheelsiterdirrmdirFileNotFoundErrorrx   isfiler3   r2   r   )r)   r=   r>   ro   no_matching_msgbytes_removedr}   	http_dirs
wheel_dirsdirssubdirfileselfcheck_jsons   &&&          r   r8   CacheCommand.remove_cache_items   s   t9q=3449::!!'7307c>**733E Qy::ONN?+HRWWX.666MIIhNN<2 
 44T__Wf5UV	66OOGX.

 )(Z(F"NN,DKK4K0 - NN<0  2BC77>>.))IIn%NN?@,c%j+m:TU-s4y9 % s   9II#"I#c                :   < V ^8  d   QhRS[ RS[S[,          RR/# rK   rL   )r   r   s   "r   r   r      s&     7 76 7c 7t 7r   c                N    V'       d   \        R 4      hV P                  VR.4      # )rN   rS   )r   r8   rO   s   &&&r   r9   CacheCommand.purge_cache   s&    344&&w66r   c                ,   < V ^8  d   QhRS[ RS[RS[/# )r   r=   r   r   )r   r.   )r   r   s   "r   r   r      s"     7 7& 7# 7# 7r   c                V    \         P                  P                  VP                  V4      # )N)rw   rx   rE   rB   )r)   r=   r   s   &&&r   ra   CacheCommand._cache_dir   s    ww||G--v66r   c                6   < V ^8  d   QhRS[ RS[S[,          /# )r   r=   r   rL   )r   r   s   "r   r   r      s     
 
 
49 
r   c                    V P                  VR 4      pV P                  VR4      p\        P                  ! VR4      \        P                  ! VR4      ,           # )rU   rT   rS   ra   r
   
find_files)r)   r=   old_http_dirnew_http_dirs   &&  r   r_   CacheCommand._find_http_files   sN    w7w	:$$\37*:O:O#;
 
 	
r   c                <   < V ^8  d   QhRS[ RS[RS[S[,          /# )r   r=   rn   r   )r   r.   r/   )r   r   s   "r   r   r      s&     9 9F 9S 9T#Y 9r   c                v    V P                  VR 4      pTRV9   d   RMR,           p\        P                  ! W24      # )rV   -z*.whlz-*.whlr   )r)   r=   rn   	wheel_dirs   &&& r   r`   CacheCommand._find_wheels   s7    OOGX6	$ wWHE$$Y88r   r   N)__name__
__module____qualname____firstlineno____doc__ignore_require_venvusager*   r:   rH   r5   r6   r7   rl   rm   r8   r9   ra   r_   r`   __static_attributes____classdictcell__)r   s   @r   r   r      s      E
: 
:
 
 4' '( (T+ +0 02 21: 1:f7 77 7
 
9 9r   r   )rw   rd   optparser   typingr   pip._internal.cli.base_commandr   pip._internal.cli.status_codesr   r   pip._internal.exceptionsr   r	   pip._internal.utilsr
   pip._internal.utils.loggingr   pip._internal.utils.miscr   r   rC   r   r   r   r   <module>r      s;    	    2 9 ; * 1 0	8	o97 o9r   