From 46361dc12cc1326702db6ded6c48f9d31dbb3494 Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Mon, 6 Jul 2020 16:23:44 +0200 Subject: [PATCH] src/find_interaction_cluster/install_hipMCL.py: display logging message when tring to download and install hipmcl --- src/find_interaction_cluster/install_hipMCL.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/find_interaction_cluster/install_hipMCL.py b/src/find_interaction_cluster/install_hipMCL.py index 1043e314..ea788a51 100644 --- a/src/find_interaction_cluster/install_hipMCL.py +++ b/src/find_interaction_cluster/install_hipMCL.py @@ -9,6 +9,8 @@ Description: Download and install hipMCL import subprocess as sp from pathlib import Path from .config import ConfigGraph +import logging +from ..logging_conf import logging_def def download_hipmcl(outfile: Path): @@ -37,9 +39,13 @@ def compilation(hip_folder: Path): sp.check_call(cmd, shell=True, stderr=sp.STDOUT) -def install_hipmcl(): +def install_hipmcl(logging_level: str = "DISABLE"): """ INstall hipMCL. """ + logging_def(ConfigGraph.results, __file__, logging_level) + logging.info("Downloading and installing hipmcl. If the installation " + "doesn't work, please try to install libopenmpi-dev on your " + "computer") download_hipmcl(ConfigGraph.hip_zip) - compilation(ConfigGraph.get_hip_folder()) \ No newline at end of file + compilation(ConfigGraph.get_hip_folder()) -- GitLab