1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Ë
ñúh›    ãóh—ddlmZddlZddlZddlZddlmZmZddlm    Z    m
Z
ddgZ d
d„Z d d„Z d d    „Zy) é)Ú annotationsN)Ú site_packagesÚ    user_site)Úrunning_under_virtualenvÚvirtualenv_no_globalÚegg_link_path_from_sys_pathÚegg_link_path_from_locationcó@—tjdd|«dz|›dgS)a€
    Convert a Name metadata value to a .egg-link name, by applying
    the same substitution as pkg_resources's safe_name function.
    Note: we cannot use canonicalize_name because it has a different logic.
 
    We also look for the raw name (without normalization) as setuptools 69 changed
    the way it names .egg-link files (https://github.com/pypa/setuptools/issues/4167).
    z[^A-Za-z0-9.]+ú-z    .egg-link)ÚreÚsub)Úraw_names úOH:\Change_password\venv_build\Lib\site-packages\pip/_internal/utils/egg_link.pyÚ_egg_link_namesrs.€ô     ‰Ð  hÓ/°+Ñ=Ø ˆ*IÐð ðócóܗt|«}tjD]N}|D]G}tjj    ||«}tjj |«sŒC|ccSŒPy)zJ
    Look for a .egg-link file for project name, by walking sys.path.
    N)rÚsysÚpathÚosÚjoinÚisfile)rÚegg_link_namesÚ    path_itemÚ egg_link_nameÚegg_links     rrr"s^€ô% XÓ.€NÜ—X‘Xò ˆ    Ø+ò     ˆMÜ—w‘w—|‘| I¨}Ó=ˆH܏w‰w~‰~˜hÕ'Ø”ñ     ð ð
rcó®—g}t«r;|jt«t«sLtrF|jt«n0tr|jt«|jt«t |«}|D]N}|D]G}t jj||«}t jj|«sŒC|ccSŒPy)a
    Return the path for the .egg-link file if it exists, otherwise, None.
 
    There's 3 scenarios:
    1) not in a virtualenv
       try to find in site.USER_SITE, then site_packages
    2) in a no-global virtualenv
       try to find in site_packages
    3) in a yes-global virtualenv
       try to find in site_packages, then site.USER_SITE
       (don't look in global location)
 
    For #1 and #3, there could be odd cases, where there's an egg-link in 2
    locations.
 
    This method will just return the first one found.
    N)
rÚappendrrrrrrrr)rÚsitesrÚsiterÚegglinks      rr    r    /s €ð$€EÜÔ!Ø  ‰ ”]Ô#Ü#Ô%­)Ø L‰LœÕ #å Ø L‰LœÔ #Ø  ‰ ”]Ô#ä$ XÓ.€NØòˆØ+ò    ˆMÜ—g‘g—l‘l 4¨Ó7ˆG܏w‰w~‰~˜gÕ&Ø”ñ    ðð
r)rÚstrÚreturnz    list[str])rr!r"z
str | None)Ú
__future__rrr rÚpip._internal.locationsrrÚpip._internal.utils.virtualenvrrÚ__all__rrr    ©rrú<module>r(s7ðÝ"ã    Û    Û
ç<÷ð "Ø!ð €ó ó
ô"r