From fefa9aa1b448c8af533aeed760620a194c99e459 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 23 Jan 2017 18:07:04 -0500 Subject: [PATCH] #54 --- pipenv/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index b6f792ab..76cbfcf5 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -71,7 +71,8 @@ def clean_requirement(requirement): def from_requirements_file(r): """Returns a list of packages from an open requirements file.""" - return [clean_requirement(p) for p in r.read().split('\n') if p and not p.startswith('#')] + # Ignore Comment lines, ignore -i lines. + return [clean_requirement(p) for p in r.read().split('\n') if p and not p.startswith('#') and not p.startswith('-i')] def do_where(virtualenv=False, bare=True):