Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion easybuild/tools/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,9 @@ def __init__(self, *args, **kwargs):
self.supports_tcl_getenv = True
self.supports_tcl_check_group = version >= LooseVersion(self.REQ_VERSION_TCL_CHECK_GROUP)
self.supports_safe_auto_load = True
self.supports_extensions = True
# Environment Modules should support "informational extension" to safely handle the
# extensions built here (see https://github.com/envmodules/modules/issues/585)
self.supports_extensions = False

def check_module_function(self, allow_mismatch=False, regex=None):
"""Check whether selected module tool matches 'module' function definition."""
Expand Down
4 changes: 4 additions & 0 deletions test/framework/module_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ def append_paths(*args, **kwargs):

def test_module_extensions(self):
"""test the extensions() for extensions"""
# not supported by Environment Modules for the moment
if isinstance(self.modtool, EnvironmentModules):
return

# check if extensions option is enabled and some module extensions are defined
init_config(build_options={'module_extensions': True})

Expand Down