1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Allow --use-wheel in requirements files

This commit is contained in:
Paul Moore 2012-10-24 14:53:58 +01:00
parent 8d68f7f2e2
commit b7a88b8623

View file

@ -1359,6 +1359,8 @@ def parse_requirements(filename, finder=None, comes_from=None, options=None):
line = line[len('--extra-index-url'):].strip().lstrip('=')
if finder:
finder.index_urls.append(line)
elif line.startswith('--use-wheel'):
finder.use_wheel = True
elif line.startswith('--no-index'):
finder.index_urls = []
else: