Skip to content

Commit

Permalink
Merge pull request #3245 from branfosj/log.warn
Browse files Browse the repository at this point in the history
replace `log.warn` with `log.warning`
  • Loading branch information
boegel committed Mar 6, 2024
2 parents 2a53152 + 9a5dd99 commit 7338ac9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions easybuild/easyblocks/c/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,16 @@ def configure_step(self):
res = run_shell_cmd("ulimit -v", fail_on_error=False)
if not res.output.startswith("unlimited"):
disable_san_tests = True
self.log.warn("There is a virtual memory limit set of %s KB. The tests of the "
"sanitizers will be disabled as they need unlimited virtual "
"memory unless --strict=error is used." % res.output.strip())
self.log.warning("There is a virtual memory limit set of %s KB. The tests of the "
"sanitizers will be disabled as they need unlimited virtual "
"memory unless --strict=error is used." % res.output.strip())

# the same goes for unlimited stacksize
res = run_shell_cmd("ulimit -s", fail_on_error=False)
if res.output.startswith("unlimited"):
disable_san_tests = True
self.log.warn("The stacksize limit is set to unlimited. This causes the ThreadSanitizer "
"to fail. The sanitizers tests will be disabled unless --strict=error is used.")
self.log.warning("The stacksize limit is set to unlimited. This causes the ThreadSanitizer "
"to fail. The sanitizers tests will be disabled unless --strict=error is used.")

if (disable_san_tests or self.cfg['skip_sanitizer_tests']) and build_option('strict') != run.ERROR:
self.log.debug("Disabling the sanitizer tests")
Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyblocks/c/clang_aomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def configure_step(self):
self.cfg_method[name](comp)
self.log.info(msg)
else:
self.log.warn("Component %s has no configure method!" % name)
self.log.warning("Component %s has no configure method!" % name)

def sanity_check_step(self):
"""
Expand Down
6 changes: 3 additions & 3 deletions easybuild/easyblocks/generic/gopackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def build_step(self):
go_sum_file = 'go.sum'

if not os.path.exists(go_mod_file) or not os.path.isfile(go_mod_file):
self.log.warn("go.mod not found! This is not natively supported go module. Trying to init module.")
self.log.warning("go.mod not found! This is not natively supported go module. Trying to init module.")

if self.cfg['modulename'] is None:
raise EasyBuildError("Installing non-native go module. You need to specify 'modulename' in easyconfig")
Expand Down Expand Up @@ -115,8 +115,8 @@ def build_step(self):
run_shell_cmd('go build ./...')
run_shell_cmd('go test ./...')

self.log.warn('Include generated go.mod and go.sum via patch to ensure locked dependencies '
'and run this easyconfig again.')
self.log.warning('Include generated go.mod and go.sum via patch to ensure locked dependencies '
'and run this easyconfig again.')
run_shell_cmd('cat go.mod')
run_shell_cmd('cat go.sum')

Expand Down
2 changes: 1 addition & 1 deletion easybuild/easyblocks/p/pyquante.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def configure_step(self):
self.log.info("Building Libint extension")
self.cfg.update('installopts', "--enable-libint")
else:
self.log.warn("Not building Libint extension")
self.log.warning("Not building Libint extension")

super(EB_PyQuante, self).configure_step()
2 changes: 1 addition & 1 deletion easybuild/easyblocks/t/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def configure_step(self):
configure_py_contents = read_file('configure.py')
for key, val in sorted(config_env_vars.items()):
if key.startswith('TF_') and key not in configure_py_contents:
self.log.warn('Did not find %s option in configure.py. Setting might not have any effect', key)
self.log.warning('Did not find %s option in configure.py. Setting might not have any effect', key)
env.setvar(key, val)

# configure.py (called by configure script) already calls bazel to determine the bazel version
Expand Down
4 changes: 2 additions & 2 deletions easybuild/easyblocks/v/vmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ def configure_step(self):
if deps['OptiX']:
self.log.info("Building with Nvidia OptiX %s support", get_software_version('OptiX'))
else:
self.log.warn("Not building with Nvidia OptiX support!")
self.log.warning("Not building with Nvidia OptiX support!")
else:
self.log.warn("Not building with CUDA nor OptiX support!")
self.log.warning("Not building with CUDA nor OptiX support!")

# see http://www.ks.uiuc.edu/Research/vmd/doxygen/configure.html
# LINUXAMD64: Linux 64-bit
Expand Down

0 comments on commit 7338ac9

Please sign in to comment.