Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2@file
3@brief helpers around requirements
4"""
7def build_requirements(module_list):
8 """
9 builds a requirements list based on a list of @see cl ModuleInstall
11 @param module_list list of @see cl ModuleInstall
12 @return string
13 """
14 res = []
15 for mod in module_list:
16 if mod.version is not None:
17 res.append("{0}=={1}".format(mod.name, mod.version))
18 else:
19 res.append(mod.name)
20 return "\n".join(res)