]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Adding products: elementtree-1.2.6 and cElementTree-1.0.5
authormaintenance team <salome-mnt@opencascade.com>
Wed, 22 Aug 2007 13:08:50 +0000 (13:08 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 22 Aug 2007 13:08:50 +0000 (13:08 +0000)
config_files/cElementTree-1.0.5.sh [new file with mode: 0755]
config_files/elementtree-1.2.6.sh [new file with mode: 0755]

diff --git a/config_files/cElementTree-1.0.5.sh b/config_files/cElementTree-1.0.5.sh
new file mode 100755 (executable)
index 0000000..9a66e6d
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : cElementTree-1.0.5.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version(){
+# No way to check version!
+return 0
+}
+
+print_env(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export cElementTree_DIR=\${INSTALL_ROOT}/cElementTree-1.0.5
+export PYTHONPATH=\${cElementTree_DIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+makedir ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/cElementTree-1.0.5.tar.gz -C ${INSTALL_WORK}
+
+cd ${INSTALL_WORK}/cElementTree-1.0.5
+
+check_job ${PRODUCT_DIR}/INSTALL_cElementTree.LOG python setup.py install --prefix=${PRODUCT_DIR}
+
+print_env
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/cElementTree-1.0.5.tar.gz -C ${INSTALL_ROOT}
+
+print_env
+}
+
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="cElementTree" ; fi
+export PRODUCT="cElementTree-1.0.5"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+$PROCEDURE 
diff --git a/config_files/elementtree-1.2.6.sh b/config_files/elementtree-1.2.6.sh
new file mode 100755 (executable)
index 0000000..903376b
--- /dev/null
@@ -0,0 +1,73 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : elementtree-1.2.6.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version(){
+# No way to check version!
+return 0
+}
+
+print_env(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export elementtree_DIR=\${INSTALL_ROOT}/elementtree-1.2.6
+export PYTHONPATH=\${elementtree_DIR}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+makedir ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/elementtree-1.2.6.tar.gz -C ${INSTALL_WORK}
+
+cd ${INSTALL_WORK}/elementtree-1.2.6
+
+check_job ${PRODUCT_DIR}/INSTALL_elementtree.LOG python setup.py install --prefix=${PRODUCT_DIR}
+
+print_env
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/elementtree-1.2.6.tar.gz -C ${INSTALL_ROOT}
+
+print_env
+}
+
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="elementtree" ; fi
+export PRODUCT="elementtree-1.2.6"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+$PROCEDURE