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):
continue
if line.startswith('-r'):
requirements += load_requirements(line[3:])
elif line[0] not in ('#', '-'):
requirements.append(line)
return requirements
# The only thing we do in this file is to call the setup() function with all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment