Commit dbfd639c authored by Andreas Dedner's avatar Andreas Dedner

[!127] install script only called make install_python on modules depending on

Merge branch 'bugfix/installScript' into 'master'

ref:staging/dune-python dune-python. If a module depended for example
dune-fempy would not be considered

See merge request [!127]

  [!127]: gitlab.dune-project.org/staging/dune-python/merge_requests/127
parents f02456d3 6726067d
Pipeline #18516 passed with stage
in 11 minutes and 33 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