@@ -1423,9 +1423,8 @@ class Lmod(ModulesTool):
1423
1423
NAME = "Lmod"
1424
1424
COMMAND = 'lmod'
1425
1425
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'
1429
1428
VERSION_REGEXP = r"^Modules\s+based\s+on\s+Lua:\s+Version\s+(?P<version>\d\S*)\s"
1430
1429
1431
1430
SHOW_HIDDEN_OPTION = '--show-hidden'
@@ -1444,7 +1443,7 @@ def __init__(self, *args, **kwargs):
1444
1443
super (Lmod , self ).__init__ (* args , ** kwargs )
1445
1444
version = StrictVersion (self .version )
1446
1445
1447
- self .supports_depends_on = version >= self . REQ_VERSION_DEPENDS_ON
1446
+ self .supports_depends_on = True
1448
1447
# See https://lmod.readthedocs.io/en/latest/125_personal_spider_cache.html
1449
1448
if version >= '8.7.12' :
1450
1449
self .USER_CACHE_DIR = os .path .join (os .path .expanduser ('~' ), '.cache' , 'lmod' )
@@ -1603,13 +1602,9 @@ def module_wrapper_exists(self, mod_name):
1603
1602
Determine whether a module wrapper with specified name exists.
1604
1603
First check for wrapper defined in .modulerc.lua, fall back to also checking .modulerc (Tcl syntax).
1605
1604
"""
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 )
1613
1608
1614
1609
# fall back to checking for .modulerc in Tcl syntax
1615
1610
if res is None :
0 commit comments