diff --git a/pipenv/patched/notpip/index.py b/pipenv/patched/notpip/index.py index fdf2cd5299..f8f313e4bc 100644 --- a/pipenv/patched/notpip/index.py +++ b/pipenv/patched/notpip/index.py @@ -488,7 +488,7 @@ def find_all_candidates(self, project_name): dependency_versions ) - def find_requirement(self, req, upgrade, ignore_compatibility=True): + def find_requirement(self, req, upgrade, ignore_compatibility=False): """Try to find a Link matching req Expects req, an InstallRequirement and upgrade, a boolean diff --git a/pipenv/patched/piptools/repositories/pypi.py b/pipenv/patched/piptools/repositories/pypi.py index 72713ae07d..4564aab99c 100755 --- a/pipenv/patched/piptools/repositories/pypi.py +++ b/pipenv/patched/piptools/repositories/pypi.py @@ -40,7 +40,7 @@ class PyPIRepository(BaseRepository): config), but any other PyPI mirror can be used if index_urls is changed/configured on the Finder. """ - def __init__(self, pip_options, session, use_json=True): + def __init__(self, pip_options, session, use_json=False): self.session = session self.use_json = use_json @@ -218,6 +218,7 @@ def get_legacy_dependencies(self, ireq): ignore_installed=True, ignore_compatibility=False ) + result = reqset._prepare_file(self.finder, ireq, ignore_requires_python=True) # Convert setup_requires dict into a somewhat usable form.