Skip to content
Snippets Groups Projects
Commit 15f2151a authored by Andreas Dedner's avatar Andreas Dedner
Browse files

catch exception when calling make install_python for an installed module.

parent 7a4cb489
No related branches found
No related tags found
1 merge request!918Fix #236
Pipeline #33007 passed
......@@ -118,10 +118,13 @@ def main(argv):
moddir = duneModules[1][m]
pythonModule = toBuildDir(builddir,moddir,m)
print("calling install_python for %s (%s)" % (m,pythonModule))
command = ['cmake', '--build', '.', '--target', 'install_python']
proc = subprocess.Popen(command, cwd=pythonModule, stdout = subprocess.PIPE)
stdout, stderr = proc.communicate()
logger.debug(buffer_to_str(stdout))
try:
command = ['cmake', '--build', '.', '--target', 'install_python']
proc = subprocess.Popen(command, cwd=pythonModule, stdout = subprocess.PIPE)
stdout, stderr = proc.communicate()
logger.debug(buffer_to_str(stdout))
except FileNotFoundError:
print("Warning: build dir not found possibly module is installed then python bindings should be already available")
if __name__ == "__main__":
main(sys.argv[1:])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment