Let us walk on the 3-isogeny graph
|
Functions | |
str | _egg_link_name (str raw_name) |
Optional[str] | egg_link_path_from_sys_path (str raw_name) |
Optional[str] | egg_link_path_from_location (str raw_name) |
|
protected |
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.
Definition at line 18 of file egg_link.py.
References i.
Referenced by pip._internal.utils.egg_link.egg_link_path_from_location(), and pip._internal.utils.egg_link.egg_link_path_from_sys_path().
Optional[str] egg_link_path_from_location | ( | str | raw_name | ) |
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.
Definition at line 39 of file egg_link.py.
References pip._internal.utils.egg_link._egg_link_name(), and i.
Optional[str] egg_link_path_from_sys_path | ( | str | raw_name | ) |
Look for a .egg-link file for project name, by walking sys.path.
Definition at line 27 of file egg_link.py.
References pip._internal.utils.egg_link._egg_link_name(), and i.