fix pip index handling

fix handling of the proper long index option (--index-url) for pip
install.
This commit is contained in:
Stefan 'hr' Berder
2017-10-31 22:25:12 +08:00
parent 1bf6f5101a
commit 6ac1eee6b9
+1 -1
View File
@@ -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)]