-
Notifications
You must be signed in to change notification settings - Fork 216
keep ModuleTool.mod_paths in sync with $MODULEPATH in ModuleTool.load()
#4991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
boegel
merged 6 commits into
easybuilders:develop
from
xdelaruelle:envmodules_hmns_build_2
Sep 13, 2025
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f5fa43c
Demonstrate HMNS module check issue with EnvironmentModules
xdelaruelle cda1e83
No specific priority for modulepath set in load_fake_module()
xdelaruelle 277147a
Pass modulepath to set instead of setting in load_fake_module()
xdelaruelle e95c87b
Keep ModuleTool.mod_paths in sync with MODULEPATH in load()
xdelaruelle c8e723a
retain priority for path to fake module in EasyBlock.load_fake_module
boegel 1ef11f6
set self.mod_paths to None and call check_module_path() rather than c…
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
test/framework/easyconfigs/test_ecs/g/GCCcore/GCCcore-12.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # should be EB_GCC, but OK for testing purposes | ||
| easyblock = 'EB_toy' | ||
|
|
||
| name = "GCCcore" | ||
| version = '12.3.0' | ||
|
|
||
| homepage = 'http://gcc.gnu.org/' | ||
| description = """The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, and Ada, | ||
| as well as libraries for these languages (libstdc++, libgcj,...).""" | ||
|
|
||
| toolchain = SYSTEM | ||
|
|
||
| source_urls = [ | ||
| 'http://ftpmirror.gnu.org/%(namelower)s/%(namelower)s-%(version)s', # GCC auto-resolving HTTP mirror | ||
| ] | ||
|
|
||
| #gcc_name = 'GCC' | ||
|
|
||
| sources = [ | ||
| SOURCELOWER_TAR_BZ2, | ||
| ] | ||
|
|
||
| moduleclass = 'compiler' |
19 changes: 19 additions & 0 deletions
19
test/framework/easyconfigs/test_ecs/g/GLib/GLib-2.77.1-GCCcore-12.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| easyblock = 'EB_toy' | ||
|
|
||
| name = 'GLib' | ||
| version = '2.77.1' | ||
|
|
||
| homepage = 'https://www.gtk.org/' | ||
| description = """GLib is one of the base libraries of the GTK+ project""" | ||
|
|
||
| toolchain = {'name': 'GCCcore', 'version': '12.3.0'} | ||
|
|
||
| source_urls = [FTPGNOME_SOURCE] | ||
| sources = [SOURCELOWER_TAR_XZ] | ||
|
|
||
| dependencies = [ | ||
| ('gettext', '0.21.1'), | ||
| ('util-linux', '2.39'), | ||
| ] | ||
|
|
||
| moduleclass = 'vis' |
20 changes: 20 additions & 0 deletions
20
test/framework/easyconfigs/test_ecs/g/gettext/gettext-0.21.1-GCCcore-12.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| easyblock = 'EB_toy' | ||
|
|
||
| name = 'gettext' | ||
| version = '0.21.1' | ||
|
|
||
| homepage = 'https://www.gnu.org/software/gettext/' | ||
| description = """GNU 'gettext' is an important step for the GNU Translation Project, as it is an asset on which we may | ||
| build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools | ||
| and documentation""" | ||
|
|
||
| toolchain = {'name': 'GCCcore', 'version': '12.3.0'} | ||
|
|
||
| source_urls = [GNU_SOURCE] | ||
| sources = [SOURCE_TAR_GZ] | ||
|
|
||
| dependencies = [ | ||
| ('ncurses', '6.4'), | ||
| ] | ||
|
|
||
| moduleclass = 'tools' |
19 changes: 19 additions & 0 deletions
19
test/framework/easyconfigs/test_ecs/n/ncurses/ncurses-6.4-GCCcore-12.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| easyblock = 'EB_toy' | ||
|
|
||
| name = 'ncurses' | ||
| version = '6.4' | ||
|
|
||
| homepage = 'https://www.gnu.org/software/ncurses/' | ||
| description = """ | ||
| The Ncurses (new curses) library is a free software emulation of curses in | ||
| System V Release 4.0, and more. It uses Terminfo format, supports pads and | ||
| color and multiple highlights and forms characters and function-key mapping, | ||
| and has all the other SYSV-curses enhancements over BSD Curses. | ||
| """ | ||
|
|
||
| toolchain = {'name': 'GCCcore', 'version': '12.3.0'} | ||
|
|
||
| source_urls = [GNU_SOURCE] | ||
| sources = [SOURCE_TAR_GZ] | ||
|
|
||
| moduleclass = 'devel' |
19 changes: 19 additions & 0 deletions
19
test/framework/easyconfigs/test_ecs/u/util-linux/util-linux-2.39-GCCcore-12.3.0.eb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| easyblock = 'EB_toy' | ||
|
|
||
| name = 'util-linux' | ||
| version = '2.39' | ||
|
|
||
| homepage = 'https://www.kernel.org/pub/linux/utils/util-linux' | ||
|
|
||
| description = "Set of Linux utilities" | ||
|
|
||
| toolchain = {'name': 'GCCcore', 'version': '12.3.0'} | ||
|
|
||
| source_urls = ['%s/v%%(version_major_minor)s' % homepage] | ||
| sources = [SOURCELOWER_TAR_GZ] | ||
|
|
||
| dependencies = [ | ||
| ('ncurses', '6.4'), | ||
| ] | ||
|
|
||
| moduleclass = 'tools' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
test/framework/modules/HierarchicalMNS/Compiler/GCCcore/12.3.0/GLib/2.77.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #%Module | ||
| proc ModulesHelp { } { | ||
| puts stderr { | ||
|
|
||
| Description | ||
| =========== | ||
| GLib is one of the base libraries of the GTK+ project | ||
|
|
||
|
|
||
| More information | ||
| ================ | ||
| - Homepage: https://www.gtk.org/ | ||
| } | ||
| } | ||
|
|
||
| module-whatis {Description: GLib is one of the base libraries of the GTK+ project} | ||
| module-whatis {Homepage: https://www.gtk.org/} | ||
| module-whatis {URL: https://www.gtk.org/} | ||
|
|
||
| set root /tmp/software/GLib/2.77.1-GCCcore-12.3.0 | ||
|
|
||
| conflict GLib | ||
|
|
||
| module load gettext/0.21.1 | ||
|
|
||
| module load util-linux/2.39 | ||
|
|
||
| setenv EBROOTGLIB "$root" | ||
| setenv EBVERSIONGLIB "2.77.1" | ||
| setenv EBDEVELGLIB "$root/easybuild/Compiler-GCCcore-12.3.0-GLib-2.77.1-easybuild-devel" | ||
|
|
||
| # Built with EasyBuild version 5.1.2.dev0-r5819168038d7bd74810f38f75acfced9fb41870e |
34 changes: 34 additions & 0 deletions
34
test/framework/modules/HierarchicalMNS/Compiler/GCCcore/12.3.0/gettext/0.21.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| #%Module | ||
| proc ModulesHelp { } { | ||
| puts stderr { | ||
|
|
||
| Description | ||
| =========== | ||
| GNU 'gettext' is an important step for the GNU Translation Project, as it is an asset on which we may | ||
| build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools | ||
| and documentation | ||
|
|
||
|
|
||
| More information | ||
| ================ | ||
| - Homepage: https://www.gnu.org/software/gettext/ | ||
| } | ||
| } | ||
|
|
||
| module-whatis {Description: GNU 'gettext' is an important step for the GNU Translation Project, as it is an asset on which we may | ||
| build many other steps. This package offers to programmers, translators, and even users, a well integrated set of tools | ||
| and documentation} | ||
| module-whatis {Homepage: https://www.gnu.org/software/gettext/} | ||
| module-whatis {URL: https://www.gnu.org/software/gettext/} | ||
|
|
||
| set root /tmp/software/gettext/0.21.1-GCCcore-12.3.0 | ||
|
|
||
| conflict gettext | ||
|
|
||
| module load ncurses/6.4 | ||
|
|
||
| setenv EBROOTGETTEXT "$root" | ||
| setenv EBVERSIONGETTEXT "0.21.1" | ||
| setenv EBDEVELGETTEXT "$root/easybuild/Compiler-GCCcore-12.3.0-gettext-0.21.1-easybuild-devel" | ||
|
|
||
| # Built with EasyBuild version 5.1.2.dev0-r5819168038d7bd74810f38f75acfced9fb41870e |
36 changes: 36 additions & 0 deletions
36
test/framework/modules/HierarchicalMNS/Compiler/GCCcore/12.3.0/ncurses/6.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| #%Module | ||
| proc ModulesHelp { } { | ||
| puts stderr { | ||
|
|
||
| Description | ||
| =========== | ||
| The Ncurses (new curses) library is a free software emulation of curses in | ||
| System V Release 4.0, and more. It uses Terminfo format, supports pads and | ||
| color and multiple highlights and forms characters and function-key mapping, | ||
| and has all the other SYSV-curses enhancements over BSD Curses. | ||
|
|
||
|
|
||
| More information | ||
| ================ | ||
| - Homepage: https://www.gnu.org/software/ncurses/ | ||
| } | ||
| } | ||
|
|
||
| module-whatis {Description: | ||
| The Ncurses (new curses) library is a free software emulation of curses in | ||
| System V Release 4.0, and more. It uses Terminfo format, supports pads and | ||
| color and multiple highlights and forms characters and function-key mapping, | ||
| and has all the other SYSV-curses enhancements over BSD Curses. | ||
| } | ||
| module-whatis {Homepage: https://www.gnu.org/software/ncurses/} | ||
| module-whatis {URL: https://www.gnu.org/software/ncurses/} | ||
|
|
||
| set root /tmp/software/ncurses/6.4-GCCcore-12.3.0 | ||
|
|
||
| conflict ncurses | ||
|
|
||
| setenv EBROOTNCURSES "$root" | ||
| setenv EBVERSIONNCURSES "6.4" | ||
| setenv EBDEVELNCURSES "$root/easybuild/Compiler-GCCcore-12.3.0-ncurses-6.4-easybuild-devel" | ||
|
|
||
| # Built with EasyBuild version 5.1.2.dev0-r5819168038d7bd74810f38f75acfced9fb41870e |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.