
    X%h	                        U d dl 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eed<   defd	Zd
ededefdZdefdZ	  ej*                         Zej.                  e   ed<    e j4                  d      defd       Zy# e$ r ej2                  ZY 0w xY w)    N)InstallationError)appdirs)running_under_virtualenvpippurelibsite_packagesreturnc                  <     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     r/var/www/pru.catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/pip/_internal/locations/base.pyget_major_minor_versionr      s    
 7>>3++,,r   new_rootpathnamec                    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   )r   r   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)   7   su    !WW\\#**e4
	Vbiik59J 77??:&&  	VHHTU	Vs   2B B-,B-	user_site)maxsizec                  >    t        t        j                  d            S )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 (''. (Y''	2s 2- -
# 
 
 
8' '  '?d&>&>&@Ivs#@
 T"=$ = #=  Is   ,#B, ,C ?C 