Skip to content

Commit 4995e2d

Browse files
authored
Merge pull request #4424 from branfosj/lmod_min
bump minimum required Lmod to 8.0.0
2 parents 7dbba36 + 5cdea46 commit 4995e2d

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/unit_tests.yml

-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
setup:
1414
runs-on: ubuntu-20.04
1515
outputs:
16-
lmod7: Lmod-7.8.22
1716
lmod8: Lmod-8.7.6
1817
modulesTcl: modules-tcl-1.147
1918
modules3: modules-3.2.10
@@ -29,7 +28,6 @@ jobs:
2928
modules_tool:
3029
# use variables defined by 'setup' job above, see also
3130
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#needs-context
32-
- ${{needs.setup.outputs.lmod7}}
3331
- ${{needs.setup.outputs.lmod8}}
3432
- ${{needs.setup.outputs.modulesTcl}}
3533
- ${{needs.setup.outputs.modules3}}

easybuild/tools/modules.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -1423,9 +1423,8 @@ class Lmod(ModulesTool):
14231423
NAME = "Lmod"
14241424
COMMAND = 'lmod'
14251425
COMMAND_ENVIRONMENT = 'LMOD_CMD'
1426-
REQ_VERSION = '6.5.1'
1427-
DEPR_VERSION = '7.0.0'
1428-
REQ_VERSION_DEPENDS_ON = '7.6.1'
1426+
REQ_VERSION = '8.0.0'
1427+
DEPR_VERSION = '8.0.0'
14291428
VERSION_REGEXP = r"^Modules\s+based\s+on\s+Lua:\s+Version\s+(?P<version>\d\S*)\s"
14301429

14311430
SHOW_HIDDEN_OPTION = '--show-hidden'
@@ -1444,7 +1443,7 @@ def __init__(self, *args, **kwargs):
14441443
super(Lmod, self).__init__(*args, **kwargs)
14451444
version = StrictVersion(self.version)
14461445

1447-
self.supports_depends_on = version >= self.REQ_VERSION_DEPENDS_ON
1446+
self.supports_depends_on = True
14481447
# See https://lmod.readthedocs.io/en/latest/125_personal_spider_cache.html
14491448
if version >= '8.7.12':
14501449
self.USER_CACHE_DIR = os.path.join(os.path.expanduser('~'), '.cache', 'lmod')
@@ -1603,13 +1602,9 @@ def module_wrapper_exists(self, mod_name):
16031602
Determine whether a module wrapper with specified name exists.
16041603
First check for wrapper defined in .modulerc.lua, fall back to also checking .modulerc (Tcl syntax).
16051604
"""
1606-
res = None
1607-
1608-
# first consider .modulerc.lua with Lmod 7.8 (or newer)
1609-
if StrictVersion(self.version) >= StrictVersion('7.8'):
1610-
mod_wrapper_regex_template = r'^module_version\("(?P<wrapped_mod>.*)", "%s"\)$'
1611-
res = super(Lmod, self).module_wrapper_exists(mod_name, modulerc_fn='.modulerc.lua',
1612-
mod_wrapper_regex_template=mod_wrapper_regex_template)
1605+
mod_wrapper_regex_template = r'^module_version\("(?P<wrapped_mod>.*)", "%s"\)$'
1606+
res = super(Lmod, self).module_wrapper_exists(mod_name, modulerc_fn='.modulerc.lua',
1607+
mod_wrapper_regex_template=mod_wrapper_regex_template)
16131608

16141609
# fall back to checking for .modulerc in Tcl syntax
16151610
if res is None:

0 commit comments

Comments
 (0)