fix check for url lines when building requirements from requirements.txt

This commit is contained in:
Min RK
2014-11-29 20:50:25 -08:00
parent b64919ed41
commit 61e4cdbecf

View File

@@ -190,7 +190,7 @@ if 'setuptools' in sys.modules:
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith(('-e', '#')):
if not req or req.startswith('#') or '://' in req:
continue
install_requires.append(req)