@@ -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