From 86867bbe389c768c39e6ed4c9b4ffe45675e4352 Mon Sep 17 00:00:00 2001 From: Simon Branford <4967+branfosj@users.noreply.github.com> Date: Mon, 6 May 2024 13:02:47 +0100 Subject: [PATCH] use ERROR global from tools.config in TensorFlow easyblock --- easybuild/easyblocks/t/tensorflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/easyblocks/t/tensorflow.py b/easybuild/easyblocks/t/tensorflow.py index 098263c81e..9543ae16c6 100644 --- a/easybuild/easyblocks/t/tensorflow.py +++ b/easybuild/easyblocks/t/tensorflow.py @@ -42,7 +42,7 @@ from easybuild.easyblocks.generic.pythonpackage import PythonPackage, det_python_version from easybuild.easyblocks.python import EXTS_FILTER_PYTHON_PACKAGES from easybuild.framework.easyconfig import CUSTOM -from easybuild.tools import run, LooseVersion +from easybuild.tools import LooseVersion from easybuild.tools.build_log import EasyBuildError, print_warning from easybuild.tools.config import build_option, IGNORE, WARN, ERROR from easybuild.tools.filetools import adjust_permissions, apply_regex_substitutions, copy_file, mkdir, resolve_path @@ -342,7 +342,7 @@ def verify_system_libs_info(self): # Libs listed in this EasyBlock but not present in the TF sources -> Removed? msg += 'Unrecognized entries for $TF_SYSTEM_LIBS: %s\n' % sorted(unknown_libs) msg += 'The EasyBlock needs to be updated to fully work with TensorFlow version %s' % self.version - if build_option('strict') == run.ERROR: + if build_option('strict') == ERROR: raise EasyBuildError(msg) else: print_warning(msg)