Skip to content

Commit

Permalink
Set max_rounds to an incredibly large number
Browse files Browse the repository at this point in the history
We really don't want to raise ResolutionTooDeep yet since the metric is
not very useful. Try to avoid this until we come up with a better method
to count.
  • Loading branch information
uranusjr committed May 20, 2020
1 parent 803a6f2 commit c728c1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pip/_internal/resolution/resolvelib/resolver.py
@@ -1,5 +1,6 @@
import functools
import logging
import sys

from pip._vendor import six
from pip._vendor.packaging.utils import canonicalize_name
Expand Down Expand Up @@ -132,7 +133,9 @@ def resolve(self, root_reqs, check_supported_wheels):
resolver = RLResolver(provider, reporter)

try:
self._result = resolver.resolve(requirements)
self._result = resolver.resolve(
requirements, max_rounds=sys.maxsize,
)

except ResolutionImpossible as e:
error = self.factory.get_installation_error(e)
Expand Down

0 comments on commit c728c1e

Please sign in to comment.