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: with open('requirements.txt') as f:
for line in f.readlines(): for line in f.readlines():
req = line.strip() req = line.strip()
if not req or req.startswith(('-e', '#')): if not req or req.startswith('#') or '://' in req:
continue continue
install_requires.append(req) install_requires.append(req)