Skip to content

Commit

Permalink
Use legacy resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev committed Nov 19, 2020
1 parent bb2cea7 commit a1e34a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ def __init__(self, pip_args, cache_dir):
# General options (find_links, index_url, extra_index_url, trusted_host,
# and pre) are deferred to pip.
self.command = create_command("install")
self.options, _ = self.command.parse_args(pip_args)
extra_pip_args = (
[]
if PIP_VERSION[:2] <= (20, 2)
else ["--use-deprecated", "legacy-resolver"]
)
self.options, _ = self.command.parse_args(pip_args + extra_pip_args)
if self.options.cache_dir:
self.options.cache_dir = normalize_path(self.options.cache_dir)

Expand Down

0 comments on commit a1e34a7

Please sign in to comment.