
    q"h	                        % S SK r S SKrS SKrS SKrS SKrS SKrS SKJr  S SKJ	r	  S SK
Jr  \	R                  " S5      r\R                  " S5      r\\S'   S\4S	 jrS
\S\S\4S jrS\4S jr \R*                  " 5       r\R.                  \   \S'   \ R4                  " SS9S\4S j5       rg! \ a    \R2                  r N/f = f)    N)InstallationError)appdirs)running_under_virtualenvpippurelibsite_packagesreturnc                  <    SR                   " [        R                  6 $ )zY
Return the major-minor version of the current Python as a string, e.g.
"3.7" or "3.10".
z{}.{})formatsysversion_info     N/var/www/html/env/lib/python3.13/site-packages/pip/_internal/locations/base.pyget_major_minor_versionr      s    
 >>3++,,r   new_rootpathnamec                    [         R                  S:X  ae  [         R                  R                  U5      (       d  [         R                  R	                  X5      $ [         R                  R	                  XSS 5      $ [         R                  S:X  aN  [         R                  R                  U5      u  p#US   S:X  a  USS n[         R                  R	                  X5      $ [        S[         R                   S35      e)	a=  Return 'pathname' with 'new_root' prepended.

If 'pathname' is relative, this is equivalent to os.path.join(new_root, pathname).
Otherwise, it requires making 'pathname' relative and then joining the
two, which is tricky on DOS/Windows and Mac OS.

This is borrowed from Python's standard library's distutils module.
posix   Nntr   \zUnknown platform: z5
Can not change root path prefix on unknown platform.)osnamepathisabsjoin
splitdriver   )r   r   driver   s       r   change_rootr       s     
ww'ww}}X&&77<<3377<<12,77	D**847d?8Dww||H++   	 *C C
 	
r   c                  p   [        5       (       a/  [        R                  R                  [        R
                  S5      n O4 [        R                  R                  [        R                  " 5       S5      n [        R                  R                  W 5      $ ! [         a    [        R                  " S5         NAf = f)Nsrcz=The folder you are executing pip from can no longer be found.)
r   r   r   r   r   prefixgetcwdOSErrorexitabspath)
src_prefixs    r   get_src_prefixr)   7   sx    !!WW\\#**e4
	Vbiik59J 77??:&&  	VHHTU	Vs    3B  B54B5	user_site)maxsizec                  @    [        [        R                  " S5      5      $ )NPYTHONFRAMEWORK)bool	sysconfigget_config_varr   r   r   is_osx_frameworkr1   O   s    	(():;<<r   )	functoolsr   siter   r/   typingpip._internal.exceptionsr   pip._internal.utilsr   pip._internal.utils.virtualenvr   user_cache_dirUSER_CACHE_DIRget_pathr   str__annotations__r   r    r)   getusersitepackagesr*   OptionalAttributeError	USER_SITE	lru_cacher.   r1   r   r   r   <module>rB      s     	  
   6 ' C ''. ''	2s 2- -
# 
 
 
8' '  '+&>&>&@Ivs#@
 T"=$ = #=  Is   /#B- -CC