]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
PAL8247: set PATH/LD_LIBRARY_PATH for Python (support Red Hat 9)
authorvsr <vsr@opencascade.com>
Mon, 28 Feb 2005 07:05:36 +0000 (07:05 +0000)
committervsr <vsr@opencascade.com>
Mon, 28 Feb 2005 07:05:36 +0000 (07:05 +0000)
config_files/Python-2.2.1.sh

index 6773f8d55c063e8e5cd557a5d118f5ffe5ca1790..cf169dfed61e917259fed487d3ada0acae80ad42 100755 (executable)
@@ -52,6 +52,10 @@ if [ -n "${pythonhome}" ] ; then
     let ver=$maj_ver*10000+$min_ver*100+$rel_ver
     if [ $ver -ge 20201 ] ;  then 
 #   if [ "`${pythonhome}/bin/python -V 2>&1`" == "Python 2.2.1" ] ; then 
+       tmp="\${PYTHONHOME}/bin ${pythonhome}/bin \${PATH} ${PATH}";  
+       path=`sort_path ${tmp}`
+       tmp="\${PYTHONHOME}/lib/python2.2 ${pythonhome}/lib/python2.2 \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";  
+       ld_library_path=`sort_path ${tmp}`
        tmp="\${PYTHONHOME}/lib/python2.2 ${pythonhome}/lib/python2.2 \${PYTHONPATH} ${PYTHONPATH}";  
        pythonpath=`sort_path ${tmp}`
        cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
@@ -59,6 +63,8 @@ if [ -n "${pythonhome}" ] ; then
 export PYTHONHOME=${pythonhome}
 export PYTHON_INCLUDE=\${PYTHONHOME}/include/python2.2
 export PYTHONPATH=${pythonpath}
+export PATH=${path}
+export LD_LIBRARY_PATH=${ld_library_path}
 ##
 EOF
        make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"