Skip to content

Commit f2a06d0

Browse files
authored
Merge pull request #73 from casparvl/fix_host_injections_dir_in_sitepackage
Fix host injection path that was still pointing to .../versions/... instead of .../host_injections/...
2 parents 3bb84bc + ca88fb0 commit f2a06d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

create_lmodsitepackage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
-- get the host_injections path, and add only the EESSI_CPU_FAMILY at the end
133133
local strip_suffix = os.getenv('EESSI_VERSION') .. "/software/" .. os.getenv('EESSI_OS_TYPE') .. "/"
134134
strip_suffix = strip_suffix .. os.getenv('EESSI_SOFTWARE_SUBDIR')
135-
local hostInjections = string.gsub(os.getenv('EESSI_SOFTWARE_PATH') or "", strip_suffix, os.getenv('EESSI_CPU_FAMILY'))
135+
local hostInjections = string.gsub(os.getenv('EESSI_SOFTWARE_PATH') or "", 'versions', 'host_injections')
136+
hostInjections = string.gsub(hostInjections, strip_suffix, os.getenv('EESSI_CPU_FAMILY'))
136137
137138
-- build final path where the software should be installed
138139
local packageEasyBuildDir = hostInjections .. "/software/" .. t.modFullName .. "/easybuild"

0 commit comments

Comments
 (0)