Skip to content

Commit

Permalink
use ERROR global from tools.config in TensorFlow easyblock
Browse files Browse the repository at this point in the history
  • Loading branch information
branfosj authored May 6, 2024
1 parent 45d0173 commit 86867bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easybuild/easyblocks/t/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 86867bb

Please sign in to comment.