From 98e73579d16b8aa03c604d981a1b8d886f7817db Mon Sep 17 00:00:00 2001 From: tazend <75485188+tazend@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:51:17 +0100 Subject: [PATCH] fix some log-messages in setup.py (#331) --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 36ea6523..c2f3077e 100644 --- a/setup.py +++ b/setup.py @@ -115,7 +115,7 @@ def _find_lib(self, lib_dir): if not lib.exists(): raise RuntimeError(f"Cannot locate Slurm library in {lib_dir}") - print(f"Found {SLURM_LIB} library in {self.lib_dir}") + print(f"Found {SLURM_LIB} library in {lib}") return lib_dir @property @@ -161,7 +161,8 @@ def check_version(self): if Version(self.version) != Version(SLURM_VERSION): raise RuntimeError( - f"Incorrect Slurm version detected, requires Slurm {SLURM_VERSION}" + "Slurm version mismatch: " + f"requires Slurm {SLURM_VERSION}, found {self.version}" )