Skip to content

Commit 584b6f7

Browse files
authored
Merge pull request #11 from boegel/modenvvar-expand-paths
mark `EasyBlock.expand_module_search_path` as removed, has been replaced by `EasyBlock.module_load_environment.expand_paths`
2 parents 274a696 + 9d0215e commit 584b6f7

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

easybuild/framework/easyblock.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,21 +1779,10 @@ def inject_module_extra_paths(self):
17791779

17801780
def expand_module_search_path(self, search_path, path_type=ModEnvVarType.PATH_WITH_FILES):
17811781
"""
1782-
Expand given path glob and return list of suitable paths to be used as search paths:
1783-
- Paths must point to existing files/directories
1784-
- Relative paths are relative to installation prefix root and are kept relative after expansion
1785-
- Absolute paths are kept as absolute paths after expansion
1786-
- Follow symlinks and resolve their paths (avoids duplicate paths through symlinks)
1787-
- :path_type: ModEnvVarType that controls requirements for population of directories
1788-
- PATH: no requirements, can be empty
1789-
- PATH_WITH_FILES: must contain at least one file in them (default)
1790-
- PATH_WITH_TOP_FILES: increase stricness to require files in top level directory
1782+
REMOVED in EasyBuild 5.1, use EasyBlock.module_load_environment.expand_paths instead
17911783
"""
1792-
self.log.deprecated(
1793-
"expand_module_search_path() is deprecated, use EasyBlock.module_load_environment.expand_paths instead",
1794-
'5.1',
1795-
)
1796-
return False
1784+
msg = "expand_module_search_path is replaced by EasyBlock.module_load_environment.expand_paths"
1785+
self.log.nosupport(msg, '5.1')
17971786

17981787
def make_module_req_guess(self):
17991788
"""

0 commit comments

Comments
 (0)