From 92c0ebf7b8e901264c71a5d82af999749c79620f Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 2 Jun 2005 08:58:11 +0000 Subject: [PATCH] - PAL6777 - verify Python version --- config_files/COMPONENT_BIN.sh | 14 ++++++++++++++ config_files/GEOM_BIN.sh | 14 ++++++++++++++ config_files/GHS3DPLUGIN_BIN.sh | 12 ++++++++++++ config_files/HELLO_BIN.sh | 14 ++++++++++++++ config_files/HappyDoc-r2_1.sh | 4 ++-- config_files/KERNEL_BIN.sh | 4 ++-- config_files/MED_BIN.sh | 14 ++++++++++++++ config_files/NETGENPLUGIN_BIN.sh | 12 ++++++++++++ config_files/Numeric-22.0.sh | 25 ++++++------------------- config_files/PYCALCULATOR_BIN.sh | 12 ++++++++++++ config_files/PYHELLO_BIN.sh | 12 ++++++++++++ config_files/PyQt-3.13.sh | 2 +- config_files/PyQt-3.3.2.sh | 9 +++++---- config_files/Python-2.2.1.sh | 16 +++++++--------- config_files/SMESH_BIN.sh | 14 ++++++++++++++ config_files/SUPERV_BIN.sh | 14 ++++++++++++++ config_files/VISU_BIN.sh | 14 ++++++++++++++ config_files/VTK-4.2.2.sh | 25 +++++++++++++++---------- config_files/sip-3.3.2.sh | 16 +++++++--------- config_files/sip-4.1.sh | 4 ++-- 20 files changed, 193 insertions(+), 58 deletions(-) diff --git a/config_files/COMPONENT_BIN.sh b/config_files/COMPONENT_BIN.sh index 6e8ebbe..53d6c7b 100755 --- a/config_files/COMPONENT_BIN.sh +++ b/config_files/COMPONENT_BIN.sh @@ -17,6 +17,13 @@ print_env(){ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${file_pth} < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh </dev/null` +if [ "$ver" == "22.0" ]; then + return 0 fi return 1 } @@ -14,7 +11,7 @@ return 1 print_env(){ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/try_native.py < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <&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}"; + tmp="\${PYTHONHOME}/lib/python\${PYTHON_VERSION} ${pythonhome}/lib/python${maj_ver}.${min_ver} \${PYTHONPATH} ${PYTHONPATH}"; pythonpath=`sort_path ${tmp}` cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <