Let us walk on the 3-isogeny graph
|
Data Structures | |
class | File |
class | RequirementPreparer |
Functions | |
BaseDistribution | _get_prepared_distribution (InstallRequirement req, BuildTracker build_tracker, PackageFinder finder, bool build_isolation, bool check_build_deps) |
None | unpack_vcs_link (Link link, str location, int verbosity) |
File | get_http_url (Link link, Downloader download, Optional[str] download_dir=None, Optional[Hashes] hashes=None) |
File | get_file_url (Link link, Optional[str] download_dir=None, Optional[Hashes] hashes=None) |
Optional[File] | unpack_url (Link link, str location, Downloader download, int verbosity, Optional[str] download_dir=None, Optional[Hashes] hashes=None) |
Optional[str] | _check_download_dir (Link link, str download_dir, Optional[Hashes] hashes, bool warn_on_hash_mismatch=True) |
Variables | |
logger = logging.getLogger(__name__) | |
Prepares a distribution for installation
|
protected |
Check download_dir for previously downloaded file with correct hash If a correct file is found return its path else None
Definition at line 181 of file prepare.py.
References i.
Referenced by pip._internal.operations.prepare.get_file_url(), pip._internal.operations.prepare.get_http_url(), RequirementPreparer.prepare_linked_requirement(), and RequirementPreparer.prepare_linked_requirements_more().
|
protected |
Prepare a distribution for installation.
Definition at line 59 of file prepare.py.
References i.
Referenced by RequirementPreparer._prepare_linked_requirement(), and RequirementPreparer.prepare_editable_requirement().
Get file and optionally check its hash.
Definition at line 114 of file prepare.py.
References pip._internal.operations.prepare._check_download_dir(), and i.
Referenced by pip._internal.operations.prepare.unpack_url().
File get_http_url | ( | Link | link, |
Downloader | download, | ||
Optional[str] | download_dir = None , |
||
Optional[Hashes] | hashes = None |
||
) |
Definition at line 90 of file prepare.py.
References pip._internal.operations.prepare._check_download_dir(), and i.
Referenced by RequirementPreparer._fetch_metadata_using_link_data_attr(), and pip._internal.operations.prepare.unpack_url().
Optional[File] unpack_url | ( | Link | link, |
str | location, | ||
Downloader | download, | ||
int | verbosity, | ||
Optional[str] | download_dir = None , |
||
Optional[Hashes] | hashes = None |
||
) |
Unpack link into location, downloading if required. :param hashes: A Hashes object, one of whose embedded hashes must match, or HashMismatch will be raised. If the Hashes is empty, no matches are required, and unhashable types of requirements (like VCS ones, which would ordinarily raise HashUnsupported) are allowed.
Definition at line 138 of file prepare.py.
References pip._internal.operations.prepare.get_file_url(), pip._internal.operations.prepare.get_http_url(), i, and pip._internal.operations.prepare.unpack_vcs_link().
Referenced by RequirementPreparer._prepare_linked_requirement().
Definition at line 75 of file prepare.py.
References i.
Referenced by pip._internal.operations.prepare.unpack_url().
logger = logging.getLogger(__name__) |
Definition at line 56 of file prepare.py.