]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Small corrections for 64 bit
authormaintenance team <salome-mnt@opencascade.com>
Thu, 18 Jun 2009 08:04:03 +0000 (08:04 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 18 Jun 2009 08:04:03 +0000 (08:04 +0000)
config_files/PYLIGHT.sh
config_files/xdata-0.6.3.sh

index 71464dcbc498d264c2343d7522b335520a153c01..0edaf3c3a12f51e6646a634bdcc592a9efb0e1ba 100755 (executable)
@@ -29,19 +29,20 @@ return 1
 }
 
 print_env_bin(){
-if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then 
-    LIB_PREFIX=64
-elif [ -d ${PRODUCT_DIR}/lib ] ; then 
-    LIB_PREFIX=""
-else 
-    LIB_PREFIX=64
-fi
+#if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then 
+#    LIB_PREFIX=64
+#elif [ -d ${PRODUCT_DIR}/lib ] ; then 
+#    LIB_PREFIX=""
+#else 
+#    LIB_PREFIX=64
+#fi
 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export PYLIGHT_ROOT_DIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
   if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
-    export LD_LIBRARY_PATH=\${PYLIGHT_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+    export PATH=\${PYLIGHT_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${PYLIGHT_ROOT_DIR}/bin/salome:\\${PYTHONPATH}
   fi
 fi
 ##
index 0a5a3283e8ae1bfcbbabc3a26a72018962e86a54..9d04711bf65438d8ef804a7d82b5e4bf71310634 100755 (executable)
@@ -19,19 +19,12 @@ return 0
 
 print_env_bin()
 {
-if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then 
-    PYTHON_LIB_PREFIX=64
-elif [ -d ${PRODUCT_DIR}/lib ] ; then 
-    PYTHON_LIB_PREFIX=""
-else 
-    PYTHON_LIB_PREFIX=64
-fi
 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM 
 export XDATAROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
 export PATH=\${XDATAROOT}/bin:\${PATH}
 export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
-export PYTHONPATH=\${XDATAROOT}/lib${PYTHON_LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/xdata:\${PYTHONPATH}
+export PYTHONPATH=\${XDATAROOT}/lib/python\${PYTHON_VERSION}/site-packages/xdata:\${PYTHONPATH}
 ##
 EOF
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})