Ë
    ”U.jW  ã                  óv  — d Z ddlmZ 	  ed«      j	                  «        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 ddlmZ  ej6                  e«      Z	 	 	 	 	 dddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Z	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdd„Z dd„Z!dd„Z"y# eef$ r Y Œ—w xY w)z7Locations where we look for configs, install stuff, etcé    )ÚannotationsÚ_distutils_hackN)ÚCommand)ÚSCHEME_KEYS)Úinstall©Úget_python_lib)ÚScheme)ÚWINDOWS)Úrunning_under_virtualenvé   )Úget_major_minor_versionF)Úignore_config_filesc               óŽ  — ddl m} d| i}|rdg|d<    ||«      }	|s	 |	j                  «        d	}|	j                  d
d¬«      }|€J ‚|}|r|rJ d|› d|› �«       ‚|r|rJ d|› d|› �«       ‚|xs |j                  |_	        |s|rd|_
        |xs |j                  |_
        |xs |j                  |_        |xs |j                  |_        |j                  «        i }t        D ]  }t        |d|z   «      ||<   Œ d|	j!                  d
«      v r(|j#                  |j$                  |j$                  dœ«       t'        «       r»|r|}n|r|j(                  }n|j                  }t*        j,                  j                  |dddt/        «       › �| «      |d<   |�ht*        j,                  j1                  t*        j,                  j3                  |d   «      «      d   }t*        j,                  j                  ||dd	 «      |d<   |S # t        $ r@ |	j	                  «       }
t
        j                  ddj                  d„ |
D «       «      «       Y �Œw xY w)z+
    Return a distutils install scheme
    r   )ÚDistributionÚnamez--no-user-cfgÚscript_argsz6Ignore distutils configs in %s due to encoding errors.z, c              3  óZ   K  — | ]#  }t         j                  j                  |«      –— Œ% y ­w)N)ÚosÚpathÚbasename)Ú.0Úps     údC:\xampp\htdocs\tradingbinance\backend\.venv\Lib\site-packages\pip/_internal/locations/_distutils.pyÚ	<genexpr>z#distutils_scheme.<locals>.<genexpr>?   s    è ø€ Ð=±u°!œ"Ÿ'™'×*Ñ*¨1×-±uùs   ‚)+Nr   T)Úcreatezuser=z prefix=zhome=Ú Úinstall_Úinstall_lib)ÚpurelibÚplatlibÚincludeÚsiteÚpythonÚheadersr   )Údistutils.distr   Úparse_config_filesÚUnicodeDecodeErrorÚfind_config_filesÚloggerÚwarningÚjoinÚget_command_objÚuserÚprefixÚhomeÚrootÚfinalize_optionsr   ÚgetattrÚget_option_dictÚupdater   r   Úinstall_userbaser   r   r   Ú
splitdriveÚabspath)Ú	dist_namer.   r0   r1   Úisolatedr/   r   r   Ú	dist_argsÚdÚpathsÚobjÚiÚschemeÚkeyÚpath_no_drives                   r   Údistutils_schemerC   $   s>  € õ ,à-3°YÐ,?€IÙØ$3Ð#4ˆ	�-Ñ á�YÓ€AÙð	Ø× Ñ Ô"ð $(€CØ
×
Ñ
˜I¨dÐ
Ó
3€CØˆ?Ðˆ?Ø#&€Añ ™Ð@ E¨$¨¨x¸°xÐ"@Ó@Ð Ù™Ð@ E¨$¨¨x¸°xÐ"@Ó@Ð ØŠ^�Q—V‘V€A„FÙ‰tØˆŒØÒ!˜Ÿ™€A„HØŠ^�Q—V‘V€A„FØŠ^�Q—V‘V€A„FØ×ÑÔà€FßˆÜ˜a ¨cÑ!1Ó2ˆˆsŠð ð ˜×)Ñ)¨)Ó4Ñ4Ø�‰ !§-¡-¸A¿M¹MÑJÔKäÔ!ÙØ‰FÙØ×'Ñ'‰Fà—X‘XˆFÜŸG™GŸL™LØØØØÔ,Ó.Ð/Ð0Øó
ˆˆyÑð ÐÜŸG™G×.Ñ.¬r¯w©w¯©¸vÀiÑ?PÓ/QÓRÐSTÑUˆMÜ "§¡§¡¨T°=ÀÀÐ3DÓ EˆF�9Ñà€Møôm "ò 	Ø×'Ñ'Ó)ˆEÜ�N‰NØHØ—	‘	Ñ=±uÓ=Ó=÷ð	ús   žG; Ç;AIÉIc                ó`   — t        | |||||«      }t        |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
    r!   r    r%   ÚscriptsÚdata)r!   r    r%   rE   rF   )rC   r
   )r9   r.   r0   r1   r:   r/   r@   s          r   Ú
get_schemerG   t   sL   € ô2 ˜i¨¨t°T¸8ÀVÓL€FÜØ�yÑ!Ø�yÑ!Ø�yÑ!Ø�yÑ!Ø�F‰^ôð ó    c                 ó¨  — t         j                  j                  t        j                  «      } t
        rat         j                  j                  | d«      }t         j                  j                  |«      s t         j                  j                  | d«      }|S t        j                  d d dk(  r	| d d dk(  ryt         j                  j                  | d«      S )NÚScriptsÚbiné   Údarwiné   z/System/Library/z/usr/local/bin)	r   r   ÚnormpathÚsysr/   r   r,   ÚexistsÚplatform)r/   Úbin_pys     r   Úget_bin_prefixrT   —   s—   € ô �W‰W×ÑœcŸj™jÓ)€FÝÜ—‘—‘˜f iÓ0ˆä�w‰w�~‰~˜fÔ%Ü—W‘W—\‘\ &¨%Ó0ˆFØˆô ‡|�|�B�QÐ˜8Ò#¨¨s°¨Ð7IÒ(IØÜ�7‰7�<‰<˜ Ó&Ð&rH   c                 ó   — t        d¬«      S )NF©Úplat_specificr   © rH   r   Úget_purelibrY   ¨   s   € Ü¨Ô.Ð.rH   c                 ó   — t        d¬«      S )NTrV   r   rX   rH   r   Úget_platlibr[   ¬   s   € Ü¨Ô-Ð-rH   )FNNFN)r9   Ústrr.   Úboolr0   ú
str | Noner1   r^   r:   r]   r/   r^   r   r]   Úreturnzdict[str, str])r9   r\   r.   r]   r0   r^   r1   r^   r:   r]   r/   r^   r_   r
   )r_   r\   )#Ú__doc__Ú
__future__r   Ú
__import__Úremove_shimÚImportErrorÚAttributeErrorÚloggingr   rP   Údistutils.cmdr   ÚDistutilsCommandÚdistutils.command.installr   r   Údistutils_install_commandÚdistutils.sysconfigr	   Úpip._internal.models.schemer
   Úpip._internal.utils.compatr   Úpip._internal.utils.virtualenvr   Úbaser   Ú	getLoggerÚ__name__r*   rC   rG   rT   rY   r[   rX   rH   r   Ú<module>rr      sR  ðÙ =õ #ð	ÙÐ Ó!×-Ñ-Ô/ó Û 	Û 
Ý 5Ý 1Ý JÝ .å .Ý .Ý Cå )à	ˆ×	Ñ	˜8Ó	$€ð
 ØØØØðMð !&ñMØðMà
ðMð ðMð ð	Mð
 ðMð ðMð ðMð óMðd ØØØØð Øð à
ð ð ð ð ð	 ð
 ð ð ð ð ó óF'ó"/ô.øðy 	�^Ð$ò 	Ùð	ús   ŠB. Â.B8Â7B8