Skip to content

Commit

Permalink
fix #1745
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Mar 14, 2018
1 parent 9bbf114 commit 6896462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipenv/patched/notpip/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pipenv/patched/piptools/repositories/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6896462

Please sign in to comment.