Commit b0927357 authored by Samuel GAIST's avatar Samuel GAIST

[setup] Added support for -r in requirements file

parent 0bdbea7e
......@@ -30,7 +30,16 @@ from io import open
def load_requirements(f):
retval = [str(k.strip()) for k in open(f, 'rt', encoding='utf8')]
return [k for k in retval if k and k[0] not in ('#', '-')]
requirements = []
for line in retval:
if not len(line):
if line.startswith('-r'):
requirements += load_requirements(line[3:])
elif line[0] not in ('#', '-'):
return requirements
# The only thing we do in this file is to call the setup() function with all
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment