From 1d30d50af51cf1615e6ddc278017327bc0c1d825 Mon Sep 17 00:00:00 2001 From: Viktor Rehnberg Date: Fri, 8 Nov 2024 14:58:31 +0000 Subject: [PATCH] Use LD_LIBRARY_PATH for testinstall runtest --- easybuild/easyblocks/generic/pythonpackage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easybuild/easyblocks/generic/pythonpackage.py b/easybuild/easyblocks/generic/pythonpackage.py index b0f7980fe6..cbc7684ff3 100644 --- a/easybuild/easyblocks/generic/pythonpackage.py +++ b/easybuild/easyblocks/generic/pythonpackage.py @@ -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)