Skip to content

Commit

Permalink
Merge pull request pypa#1004 from hrbonz/wip/requirement_index_url
Browse files Browse the repository at this point in the history
fix pip index handling
  • Loading branch information
nateprewitt committed Oct 31, 2017
2 parents 1bf6f51 + 6ac1eee commit 72767c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def import_requirements(r=None, dev=False):
indexes = []
# Find and add extra indexes.
for line in contents.split('\n'):
if line.startswith(('-i ', '--index ')):
if line.startswith(('-i ', '--index ', '--index-url ')):
indexes.append(line.split()[1])

reqs = [f for f in parse_requirements(r, session=pip._vendor.requests)]
Expand Down

0 comments on commit 72767c7

Please sign in to comment.