Skip to content
Merged
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
16 changes: 6 additions & 10 deletions easybuild/easyblocks/generic/binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def __init__(self, *args, **kwargs):
mkdir(self.installdir, parents=True)
self.log.info("Performing staged installation via %s" % self.installdir)

prepend_to_path = self.cfg.get('prepend_to_path', PREPEND_TO_PATH_DEFAULT)
if isinstance(prepend_to_path, str):
prepend_to_path = [prepend_to_path]
if prepend_to_path:
self.module_load_environment.PATH.extend(prepend_to_path)

def extract_step(self):
"""Copy all source files to the build directory"""

Expand Down Expand Up @@ -151,13 +157,3 @@ def sanity_check_rpath(self):
"""Skip the rpath sanity check, this is binary software"""
self.log.info("RPATH sanity check is skipped when using %s easyblock (derived from Binary)",
self.__class__.__name__)

def make_module_extra(self):
"""Add the specified directories to the PATH."""

txt = super().make_module_extra()
prepend_to_path = self.cfg.get('prepend_to_path', PREPEND_TO_PATH_DEFAULT)
if prepend_to_path:
txt += self.module_generator.prepend_paths("PATH", prepend_to_path)
self.log.debug("make_module_extra added this: %s" % txt)
return txt