From 6ac1eee6b9e8f22b5be29f267a1beda221f05aba Mon Sep 17 00:00:00 2001
From: Stefan 'hr' Berder
Date: Tue, 31 Oct 2017 22:25:12 +0800
Subject: [PATCH] fix pip index handling
fix handling of the proper long index option (--index-url) for pip
install.
---
pipenv/cli.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pipenv/cli.py b/pipenv/cli.py
index c696fec0..239cf972 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -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)]