Skip to content

Commit 9926576

Browse files
committed
make intelbase easyblock aware of module-search-path-headers
1 parent 04dc2b3 commit 9926576

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/easyblocks/generic/intelbase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def prepare_intel_tools_env(self):
137137

138138
# make sure $CPATH, $LD_LIBRARY_PATH and $LIBRARY_PATH are not updated in generated module file,
139139
# because that leads to problem when the libraries included with VTune/Advisor/Inspector are being picked up
140-
for disallowed_var in ['CPATH', 'LD_LIBRARY_PATH', 'LIBRARY_PATH']:
140+
mod_env_headers = self.module_load_environment.alias_vars('HEADERS')
141+
mod_env_libs = ['LD_LIBRARY_PATH', 'LIBRARY_PATH']
142+
for disallowed_var in mod_env_headers + mod_env_libs:
141143
try:
142144
delattr(self.module_load_environment, disallowed_var)
143145
except AttributeError:

0 commit comments

Comments
 (0)