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 f0d441c commit 1d30d50
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 @@ -872,9 +872,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 1d30d50

Please sign in to comment.