This commit is contained in:
2017-01-23 18:07:04 -05:00
parent 0c3afc6b40
commit fefa9aa1b4
+2 -1
View File
@@ -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):