Move non-lazy req fallback outside of `_fetch_metadata`

No change in behavior, we just want to unify "requirements processing"
and moving this function out is a prereq for moving `_fetch_metadata` in.
This commit is contained in:
Chris Hunt 2020-08-02 11:10:00 -04:00
parent 7a5e043776
commit 4d94ae4c40
1 changed files with 1 additions and 1 deletions

View File

@ -248,13 +248,13 @@ class _InstallRequirementBackedCandidate(Candidate):
dist = dist_from_wheel_url(self._name, url, session)
self._check_metadata_consistency(dist)
self._dist = dist
self._prepare()
@property
def dist(self):
# type: () -> Distribution
if self._dist is None:
self._fetch_metadata()
self._prepare()
return self._dist
def _get_requires_python_specifier(self):