
    dh	                    J   U d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZ d dl	m
Z
 d dlmZ  e
j                  d      Z ej                  d      Zded	<   dd
ZddZddZ	  ej*                         Zded<   ej2                  dd       Zy# e$ r ej0                  ZY 'w xY w)    )annotationsN)InstallationError)appdirs)running_under_virtualenvpippurelibstrsite_packagesc                 <     dj                   t        j                   S )ze
    Return the major-minor version of the current Python as a string, e.g.
    "3.7" or "3.10".
    z{}.{})formatsysversion_info     ^/var/www/html/vivango/api/ia/venv/lib/python3.12/site-packages/pip/_internal/locations/base.pyget_major_minor_versionr      s    
 7>>3++,,r   c                   t         j                  dk(  rbt         j                  j                  |      s t         j                  j	                  | |      S t         j                  j	                  | |dd       S t         j                  dk(  rOt         j                  j                  |      \  }}|d   dk(  r|dd }t         j                  j	                  | |      S t        dt         j                   d      )	aQ  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   )new_rootpathnamedriver   s       r   change_rootr!      s     
ww'ww}}X&77<<(3377<<(12,77	D**847d?8Dww||Hd++   	 *C C
 	
r   c                 `   t               r/t        j                  j                  t        j
                  d      } n3	 t        j                  j                  t        j                         d      } t        j                  j                         S # t        $ r t	        j                  d       Y ?w xY w)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*   8   su    !WW\\#**e4
	Vbiik59J 77??:&&  	VHHTU	Vs   2B B-,B-z
str | None	user_sitec                 >    t        t        j                  d            S )NPYTHONFRAMEWORK)bool	sysconfigget_config_varr   r   r   is_osx_frameworkr1   P   s    	(():;<<r   )returnr	   )r   r	   r   r	   r2   r	   )r2   r.   )
__future__r   	functoolsr   siter   r/   pip._internal.exceptionsr   pip._internal.utilsr   pip._internal.utils.virtualenvr   user_cache_dirUSER_CACHE_DIRget_pathr
   __annotations__r   r!   r*   getusersitepackagesr+   AttributeError	USER_SITEcacher1   r   r   r   <module>rA      s    "  	  
  6 ' C (''. (Y''	2s 2-
8'  5D446Iz6
 = =  Is   $B B"!B"