
    Wh	                    4   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<   n# e$ r
 ej        ZY nw xY wej        dd            ZdS )    )annotationsN)InstallationError)appdirs)running_under_virtualenvpippurelibstr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     n/var/www/tools.fuzzalab.pt/emblema-extractor/venv/lib/python3.11/site-packages/pip/_internal/locations/base.pyget_major_minor_versionr      s    
 7>3+,,r   new_rootpathnamec                   t           j        dk    rgt           j                            |          s t           j                            | |          S t           j                            | |dd                   S t           j        dk    rXt           j                            |          \  }}|d         dk    r
|dd         }t           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     
w'w}}X&& 	87<<(3337<<(122,777	D**8447d??8Dw||Hd+++  C C C C
 
 	
r   c                 `   t                      r+t          j                            t          j        d          } nW	 t          j                            t          j                    d          } n$# t          $ r t	          j        d           Y nw xY wt          j        	                    |           S )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   s    !! VW\\#*e44

	Vbikk599JJ 	V 	V 	VHTUUUUU	V 7??:&&&s   1A- -BBz
str | None	user_siteboolc                 D    t          t          j        d                    S )NPYTHONFRAMEWORK)r-   	sysconfigget_config_varr   r   r   is_osx_frameworkr2   P   s    	():;;<<<r   )r   r	   )r   r	   r   r	   r   r	   )r   r-   )
__future__r   	functoolsr   siter   r0   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cacher2   r   r   r   <module>rA      sk   " " " " " " "     				  



     6 6 6 6 6 6 ' ' ' ' ' ' C C C C C C ('.. (Y'	22 2 2 2 2- - - -
 
 
 
8' ' ' '  5D466I66666   III = = = = = =s    A5 5BB