From c5a2427fb34b1e93d9717416ce93ad562f639f38 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 7 Mar 2022 15:16:49 +0100 Subject: [PATCH] Put PYTHONPATH from build env into init_ilcsoft.sh --- ilcsoft/ilcsoft.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ilcsoft/ilcsoft.py b/ilcsoft/ilcsoft.py index f5ad2b12..39b3f937 100644 --- a/ilcsoft/ilcsoft.py +++ b/ilcsoft/ilcsoft.py @@ -434,6 +434,10 @@ def makeinstall(self): # export Python in PATH and LD_LIBRARY_PATH f.write( 'export PATH='+py_path+'/bin:${PATH}' + os.linesep ) f.write( 'export LD_LIBRARY_PATH='+py_path+'/lib:${LD_LIBRARY_PATH}' + os.linesep + os.linesep ) + # copy the PYTHONPATH verbatim from the build setup if it is set + python_path = os.getenv('PYTHONPATH') + if python_path: + f.write('export PYTHONPATH=' + python_path) f.write( 'export CXX=' + compiler + os.linesep ) ccompiler = self.env["CC"]