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:
parent
803a6f2017
commit
418d9051b8
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue