£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

ReL                 @   s  d  Z  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 Z d d l	 m Z
 d d l m Z d d l m Z d d l m Z d d l m Z d d	 l m Z d d
 l m Z m Z d d l m Z e rd d l m Z m Z m Z m Z d d l m  Z! e j" d  Z# d d   Z$ d d   Z% e j& d  Z' e j(   j)   d k rve
 j*   Z' y e j+   Z, Wn e- k
 re j. Z, Yn Xe re j/ j0 e j1 d  Z2 e j/ j0 e, d  Z3 e j/ j4 e2  s~e j/ j0 e j1 d  Z2 e j/ j0 e, d  Z3 ne e j/ j0 e j1 d  Z2 e j/ j0 e, d  Z3 e j d d  d k r~e j1 d d  d k r~d Z2 d d d d d d d  Z5 d d d d d d d   Z6 d S)!z7Locations where we look for configs, install stuff, etc    )absolute_importN)	sysconfig)SCHEME_KEYS)install)Scheme)appdirs)WINDOWS)MYPY_CHECK_RUNNINGcast)running_under_virtualenv)DictListOptionalUnion)Commandpipc               C   s   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   r   /builddir/build/BUILDROOT/alt-python35-pip-20.2.4-5.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/pip/_internal/locations.pyget_major_minor_version"   s    r   c              C   su   t    r$ t j j t j d  }  nA y t j j t j   d  }  Wn t k
 rd t j d  Yn Xt j j	 |   S)Nsrcz=The folder you are executing pip from can no longer be found.)
r   ospathjoinr   prefixgetcwdOSErrorexitabspath)
src_prefixr   r   r   get_src_prefix+   s    	r"   purelibpypyZScriptsbin   darwin   z/System/Library/z/usr/local/binFc             C   s*  d d l  m } d |  i } | r/ d g | d <| |  } | j   d }	 | j d d d	 }	 |	 d k	 sr t  t t |	  }
 | o | s t d
 j | |    | o | s t d j | |    | p |
 j |
 _ | s | r d |
 _	 | p |
 j	 |
 _	 | p|
 j
 |
 _
 | p"|
 j |
 _ |
 j   i  } x% t D] } t |
 d |  | | <q?Wd | j d  k r| j t d |
 j d |
 j   t   r&t j j |
 j	 d d d j t    |   | d <| d k	 r&t j j t j j | d   d } t j j | | d d   | d <| S)z+
    Return a distutils install scheme
    r   )Distributionnamez--no-user-cfgscript_argsNr   createTzuser={} prefix={}zhome={} prefix={} install_install_libr#   platlibincludesitezpython{}headers   )distutils.distr)   parse_config_filesget_command_objAssertionErrorr
   distutils_install_commandr   userr   homerootfinalize_optionsr   getattrget_option_dictupdatedictr/   r   r   r   r   r   
splitdriver    )	dist_namer:   r;   r<   isolatedr   r)   	dist_argsdobjischemekeypath_no_driver   r   r   distutils_scheme_   sL    
%%	
"				rL   c             C   sT   t  |  | | | | |  } t d | d d | d d | d d | d d | d  S)a;  
    Get the "scheme" corresponding to the input parameters. The distutils
    documentation provides the context for the available schemes:
    https://docs.python.org/3/install/index.html#alternate-installation

    :param dist_name: the name of the package to retrieve the scheme for, used
        in the headers scheme path
    :param user: indicates to use the "user" scheme
    :param home: indicates to use the "home" scheme and provides the base
        directory for the same
    :param root: root under which other directories are re-based
    :param isolated: equivalent to --no-user-cfg, i.e. do not consider
        ~/.pydistutils.cfg (posix) or ~/pydistutils.cfg (non-posix) for
        scheme paths
    :param prefix: indicates to use the "prefix" scheme and provides the
        base directory for the same
    r0   r#   r3   scriptsdata)rL   r   )rC   r:   r;   r<   rD   r   rI   r   r   r   
get_scheme   s    



rO   )7__doc__
__future__r   r   os.pathplatformr2   r   r   	distutilsdistutils_sysconfigdistutils.command.installr   r   r9   pip._internal.models.schemer   Zpip._internal.utilsr   pip._internal.utils.compatr   pip._internal.utils.typingr	   r
   pip._internal.utils.virtualenvr   typingr   r   r   r   distutils.cmdr   ZDistutilsCommanduser_cache_dirUSER_CACHE_DIRr   r"   get_pathsite_packagespython_implementationlowerget_python_libgetusersitepackages	user_siteAttributeError	USER_SITEr   r   r   bin_pybin_userexistsrL   rO   r   r   r   r   <module>   sX   "	2A