diff --git a/pipenv/core.py b/pipenv/core.py index 75a9e614..be9d53b0 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -803,7 +803,7 @@ def do_install_dependencies( deps_list = list(lockfile.get_requirements(dev=dev, only=dev_only)) if emit_requirements: index_args = prepare_pip_source_args( - get_source_list(project, pypi_mirror=pypi_mirror, project=project) + get_source_list(project, pypi_mirror=pypi_mirror) ) index_args = " ".join(index_args).replace(" -", "\n-") deps = [ diff --git a/pipenv/utils.py b/pipenv/utils.py index 0dad2ae9..93a93dfd 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -322,7 +322,7 @@ def get_source_list( return sources -def get_indexes_from_requirement(req, project, ndex=None, extra_indexes=None, trusted_hosts=None, pypi_mirror=None): +def get_indexes_from_requirement(req, project, index=None, extra_indexes=None, trusted_hosts=None, pypi_mirror=None): # type: (Requirement, Project, Optional[Text], Optional[List[Text]], Optional[List[Text]], Optional[Text]) -> Tuple[TSource, List[TSource], List[Text]] index_sources = [] # type: List[TSource] if not trusted_hosts: @@ -341,7 +341,7 @@ def get_indexes_from_requirement(req, project, ndex=None, extra_indexes=None, tr indexes.extend(project_indexes) if len(indexes) > 1: index, extra_indexes = indexes[0], indexes[1:] - index_sources = get_source_list(index=index, extra_indexes=extra_indexes, trusted_hosts=trusted_hosts, pypi_mirror=pypi_mirror, project=project) + index_sources = get_source_list(project, index=index, extra_indexes=extra_indexes, trusted_hosts=trusted_hosts, pypi_mirror=pypi_mirror) if len(index_sources) > 1: index_source, extra_index_sources = index_sources[0], index_sources[1:] else: