Commit eb0bc6bd authored by Reinout van Rees's avatar Reinout van Rees

Merge pull request #255 from mauritsvanrees/maurits-check-use-dependency-links-earlier

Check the 'use-dependency-links' option earlier.
parents 84053ef6 30683a0d
...@@ -4,7 +4,9 @@ Change History ...@@ -4,7 +4,9 @@ Change History
2.4.1 (unreleased) 2.4.1 (unreleased)
================== ==================
- Nothing changed yet. - Check the ``use-dependency-links`` option earlier. This can give
a small speed increase.
[maurits]
2.4.0 (2015-07-01) 2.4.0 (2015-07-01)
......
...@@ -552,18 +552,18 @@ class Installer: ...@@ -552,18 +552,18 @@ class Installer:
else: else:
dists = [dist] dists = [dist]
for dist in dists: if not self._install_from_cache and self._use_dependency_links:
if (dist.has_metadata('dependency_links.txt') for dist in dists:
and not self._install_from_cache if dist.has_metadata('dependency_links.txt'):
and self._use_dependency_links for link in dist.get_metadata_lines('dependency_links.txt'):
): link = link.strip()
for link in dist.get_metadata_lines('dependency_links.txt'): if link not in self._links:
link = link.strip() logger.debug('Adding find link %r from %s',
if link not in self._links: link, dist)
logger.debug('Adding find link %r from %s', link, dist) self._links.append(link)
self._links.append(link) self._index = _get_index(self._index_url,
self._index = _get_index(self._index_url, self._links, self._links,
self._allow_hosts) self._allow_hosts)
for dist in dists: for dist in dists:
# Check whether we picked a version and, if we did, report it: # Check whether we picked a version and, if we did, report it:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment