
    fXf	                     r   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<   n# e$ r
 ej        ZY nw xY w e j        d          defd            ZdS )    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     U/var/www/html/Qu*py/bism/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)   7   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	user_site)maxsizec                  D    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 6 6 6 6 6 ' ' ' ' ' ' C C C C C C ('.. (Y'	22s 2 2 2- - - - -
# 
 
 
 
 
 
8' ' ' ' '  '?d&>&@&@Ivs#@@@@   III T"""=$ = = = #"= = =s   (B BB