3 ####################################################################################
4 # File : Numeric-22.0.sh
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
16 ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null`
17 if [ "$ver" == "22.0" ]; then
24 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
25 #$DELIM ${PRODUCT_TYPE} $DELIM
26 export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages/Numeric:\${PYTHONPATH}
29 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
30 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
35 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
36 #$DELIM ${PRODUCT_TYPE}_src $DELIM
40 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
41 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
45 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
46 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
52 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
53 source ${INSTALL_WORK}/$SHRC
55 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
57 # to generate environment scripts
61 install_source_and_build()
67 makedir ${PRODUCT_DIR}
70 check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
72 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
75 # remove sources and temporary files after building
76 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
77 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
80 # to generate environment scripts
86 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
88 # to generate environment scripts
93 export INSTALL_WORK=$2;
95 export INSTALL_ROOT=$4;
96 export PRODUCT_SEQUENCE=$5;
97 export PRODUCT_TYPE=$6;
98 export INSTALL_PRODUCTS=$7;
101 export PRODUCT="Numeric-22.0"
102 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
103 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}