1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

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.
This commit is contained in:
Tzu-ping Chung 2020-05-20 20:50:33 +08:00
parent 803a6f2017
commit 418d9051b8

View file

@ -132,7 +132,10 @@ class Resolver(BaseResolver):
resolver = RLResolver(provider, reporter)
try:
self._result = resolver.resolve(requirements)
try_to_avoid_resolution_too_deep = 2000000
self._result = resolver.resolve(
requirements, max_rounds=try_to_avoid_resolution_too_deep,
)
except ResolutionImpossible as e:
error = self.factory.get_installation_error(e)