Skip to content
Open
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
9 changes: 6 additions & 3 deletions EESSI-extend-easybuild.eb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ modextravars = {
# EASYBUILD_GROUP_WRITABLE_INSTALLDIR
# EASYBUILD_UMASK
# EASYBUILD_STICKY_BIT
modluafooter = """
local_modluafooter = """
if (mode() == "load") then
-- Use a working directory for temporary build files
if (os.getenv("WORKING_DIR") == nil) then
Expand Down Expand Up @@ -215,14 +215,15 @@ if not ( isloaded("EasyBuild") ) then
load(latest("EasyBuild"))
end
easybuild_version = os.getenv("EBVERSIONEASYBUILD") or easybuild_version
eessi_version = os.getenv("EESSI_VERSION") or "2023.06"
eessi_version = os.getenv("EESSI_VERSION") or "{_template_version}"

-- Set environment variables that are EasyBuild version specific
-- Do unload unconditionally, so that even if EB versions were switched in the meantime, this gets unset
-- This avoids issues where EESSI-extend is first loaded with EB => 5.1 (which set these vars)
-- but then EB is swapped for a version < 5.1 and then EESSI-extend is unloaded (which would not unset
-- these vars if we did it conditional on the EB version)
if mode() == "unload" or mode() == "dependencyCk" or convertToCanonical(easybuild_version) >= convertToCanonical("5.1") then
if mode() == "unload" or mode() == "dependencyCk" or
( easybuild_version ~= nil and convertToCanonical(easybuild_version) >= convertToCanonical("5.1") ) then
setenv ("EASYBUILD_STRICT_RPATH_SANITY_CHECK", "1")
setenv ("EASYBUILD_CUDA_SANITY_CHECK_ERROR_ON_FAILED_CHECKS", "1")
setenv ("EASYBUILD_FAIL_ON_MOD_FILES_GCCCORE", "1")
Expand All @@ -236,4 +237,6 @@ if mode() == "unload" or mode() == "dependencyCk" or convertToCanonical(easybuil
end
"""

modluafooter = local_modluafooter.format(_template_version=version)

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 2025-10-12
# Running 'module show EESSI-extend/2025.06-easybuild' throws an error. It seems
# 'easybuild_version' is nil and therefore an conditional expression cannot be
# evaluated. Also, it seems not correct that the eessi_version is set to
# "2023.06" if the environment variable EESSI_VERSION is not set.
easyconfigs:
- EESSI-extend-easybuild.eb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this file, you don't need it