Commit 6726067d authored by Andreas Dedner's avatar Andreas Dedner

install script only called make install_python on modules depending on

dune-python. If a module depended for example dune-fempy would not be
considered
parent f02456d3
Pipeline #18515 passed with stage
in 9 minutes and 12 seconds
......@@ -102,19 +102,12 @@ def main(argv):
if execute == "install":
duneModules = select_modules()
moddir = duneModules[1]["dune-python"]
pythonModules = [ toBuildDir(builddir,moddir,'dune-python') ]
for m,depends in duneModules[0].items():
moddir = duneModules[1][m]
for d,v in depends.depends:
if d == 'dune-python':
pythonModules = pythonModules + [ toBuildDir(builddir,moddir,m) ]
for d,v in depends.suggests:
if d == 'dune-python':
pythonModules = pythonModules + [ toBuildDir(builddir,moddir,m) ]
for moddir in pythonModules:
pythonModule = toBuildDir(builddir,moddir,m)
print("calling install_python in",moddir)
command = ['cmake', '--build', '.', '--target', 'install_python']
proc = subprocess.Popen(command, cwd=moddir, stdout = subprocess.PIPE)
proc = subprocess.Popen(command, cwd=pythonModule, stdout = subprocess.PIPE)
stdout, stderr = proc.communicate()
logger.debug(buffer_to_str(stdout))
......
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