Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:01:52

0001 #!/bin/bash
0002 # prioritize local DD4hep installation
0003 
0004 # sourcing DD4hep/install/bin/thisdd4hep.sh re-orders items in these PATH variables;
0005 # here we temporarily store them so we can restore them afterward
0006 LD_LIBRARY_PATH_TMP=$LD_LIBRARY_PATH
0007 PYTHONPATH_TMP=$PYTHONPATH
0008 
0009 # source installed thisdd4hep.sh
0010 source DD4hep/install/bin/thisdd4hep.sh
0011 
0012 # restore PATH variables, and prepend the DD4hep installation paths
0013 pyDir=$(find $DD4hep_ROOT/lib -type d -name "python*" -print | head -n1)
0014 export PYTHONPATH=$pyDir/site-packages:$PYTHONPATH_TMP
0015 export LD_LIBRARY_PATH=$DD4hep_ROOT/lib:$LD_LIBRARY_PATH_TMP
0016 
0017 # thisdd4hep.sh also doens't select the newly installed examples
0018 export DD4HEP=$DD4hep_ROOT/examples
0019 
0020 # add /opt/local/bin back to $PATH (workaround..)
0021 export PATH="$PATH:/opt/local/bin"
0022 
0023 # update prompt
0024 export PS1="${PS1:-}"
0025 export PS1="drich - WITH DD4HEP OVERRIDE ${PS1_SIGIL}>${PS1#*>}"
0026 unset branch
0027 
0028 # old test version (not using thisdd4hep.sh)
0029 # export DD4hep_ROOT=$DRICH_DEV/DD4hep/install
0030 # export DD4hepINSTALL=$DD4hep_ROOT
0031 # export DD4hep_DIR=$DD4hep_ROOT
0032 # export DD4HEP=$DD4hep_ROOT/examples
0033 # pyDir=$(find $DD4hep_ROOT/lib -type d -name "python*" -print | head -n1)
0034 # export PYTHONPATH=$pyDir/site-packages:$PYTHONPATH
0035 # # export LD_LIBRARY_PATH=$DD4hep_ROOT/lib:$LD_LIBRARY_PATH