Skip to content

Commit 9999f0e

Browse files
authored
Merge pull request #8275 from uranusjr/very-large-round-count
Set max_rounds to an incredibly large number
2 parents 803a6f2 + 418d905 commit 9999f0e

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
@@ -132,7 +132,10 @@ def resolve(self, root_reqs, check_supported_wheels):
132132
resolver = RLResolver(provider, reporter)
133133

134134
try:
135-
self._result = resolver.resolve(requirements)
135+
try_to_avoid_resolution_too_deep = 2000000
136+
self._result = resolver.resolve(
137+
requirements, max_rounds=try_to_avoid_resolution_too_deep,
138+
)
136139

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

0 commit comments

Comments
 (0)