Skip to content

Commit

Permalink
Use LD_LIBRARY_PATH for testinstall runtest
Browse files Browse the repository at this point in the history
  • Loading branch information
VRehnberg committed Nov 8, 2024
1 parent 9522435 commit 1486d87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/generic/pythonpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,10 @@ def test_step(self, return_output_ec=False):

abs_bindirs = [os.path.join(actual_installdir, 'bin')]
abs_pylibdirs = [os.path.join(actual_installdir, pylibdir) for pylibdir in self.all_pylibdirs]
extrapath = "export PATH={path} PYTHONPATH={pythonpath} &&".format(
extrapath = "export PATH={path} PYTHONPATH={pythonpath} LD_LIBRARY_PATH={ld_library_path} &&".format(
path=os.pathsep.join(abs_bindirs + ['$PATH']),
pythonpath=os.pathsep.join(abs_pylibdirs + ['$PYTHONPATH']),
ld_library_path=os.pathsep.join(abs_pylibdirs + ['$LD_LIBRARY_PATH']),
)

cmd = self.compose_install_command(test_installdir, extrapath=extrapath)
Expand Down

0 comments on commit 1486d87

Please sign in to comment.