Skip to content

Commit c728c1e

Browse files
committed
Set max_rounds to an incredibly large number
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.
1 parent 803a6f2 commit c728c1e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pip/_internal/resolution/resolvelib/resolver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import functools
22
import logging
3+
import sys
34

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

134135
try:
135-
self._result = resolver.resolve(requirements)
136+
self._result = resolver.resolve(
137+
requirements, max_rounds=sys.maxsize,
138+
)
136139

137140
except ResolutionImpossible as e:
138141
error = self.factory.get_installation_error(e)

0 commit comments

Comments
 (0)