Skip to content

Commit

Permalink
make intelbase easyblock aware of module-search-path-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Feb 10, 2025
1 parent 04dc2b3 commit 9926576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion easybuild/easyblocks/generic/intelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def prepare_intel_tools_env(self):

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

0 comments on commit 9926576

Please sign in to comment.