]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
SALOME 6.5.0 preparation: update script for numpy (1.5.1)
authorinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:46:55 +0000 (07:46 +0000)
committerinv <inv@opencascade.com>
Wed, 4 Apr 2012 07:46:55 +0000 (07:46 +0000)
13 files changed:
config_CentOS_5.5_64bit.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Debian_5.0_64bit.xml
config_Debian_6.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Mandriva_2010.0.xml
config_Mandriva_2010.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/numpy-1.5.1.sh [deleted file]
config_files/numpy.sh [new file with mode: 0755]

index ecf8468474f2903ed1dbd6f4ad250a7408309a74..759587244b17d45f98639f77ac2e9ef793774862 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index e1dc1ba644812eaf4b83661f161a909b64f3f154..634c727f1149aacefb2a207a94afe5b2ae74f401 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index 491a5a7707eb6a6f5dfa833f0a8953bbbf268120..55665ca1ca03282a0e9651db50fc8d3f812577f3 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index ee7c7bbe91f2a99aea63c44c9a22c86d76aa09b8..d7feb844d8d31d7ac20c23ff8dab7b96b01c314d 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index 50063d65554b75e847669ef465e05b297ca39010..e8c2bafe0d8877e1e6ae92eebbaad050d1c183c3 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index 1593fd78aac59a2c9c0b5c2029a816a01f71cad6..d9b29560f600f90f745cab6b7f97d0500bb595ba 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index 09ea5adb9da4df7868769eb50a85e415d143e7d6..d534d99c3b46cbe21718bc425f6614c1c3572cd4 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index 4ac6cb230cb699235fe42a84c2597956735c9948..377c0a3032007694e309f245712ba9f2e9647f54 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index f351ec2a57fa236c63f51a77e1bf177a4ff3ea38..1df2e327edcdf2ce027d3c8cab9eb79de7351c42 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index f578eb226fb37539fbb77067fab2ddf900a261c3..1494ee31800cf3ed9712f1a1b658baee2a7f7a72 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
index feb27ffa3c89b08c41bb63f4e70949071b0caa63..b5de1618a39671b8c5132f0f10790c84cbe30c8f 100755 (executable)
                     version="1.5.1" 
                    disable="false"
                    installdiskspace="22100,51768,143392"
-                   script="numpy-1.5.1.sh"/>
+                   script="numpy.sh"/>
     </product>
     <product name="libBatch" 
             type="prerequisite"
diff --git a/config_files/numpy-1.5.1.sh b/config_files/numpy-1.5.1.sh
deleted file mode 100755 (executable)
index 049226b..0000000
+++ /dev/null
@@ -1,139 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : numpy-1.5.1.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-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version(){
-# It is not necessary to check version!
-return 0
-}
-
-print_env_bin(){
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export PYTHONPATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
-export PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/lib:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-#$DELIM ${PRODUCT_TYPE}_src $DELIM
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-makedir ${PRODUCT_SRC_DIR}
-# unpack
-
-export LAPACKSUFF="3.3"
-
-export LD_LIBRARY_PATH=${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC/lib:${LD_LIBRARY_PATH}
-
-check_jb tar xfz ${SOURCE_DIR}/lapack-${LAPACKSUFF}.tar.gz -C ${PRODUCT_SRC_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/numpy-1.5.1.tar.gz -C ${PRODUCT_SRC_DIR}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-# lapck cmake options
-
-CMAKE_OPTIONS="-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC -DBUILD_SHARED_LIBS:BOOL=ON"
-
-# install
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-cd ${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG cmake . ${CMAKE_OPTIONS}
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install
-cd ${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC/TESTING/MATGEN ; cp -rf *.so ${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC/lib
-cd ${PRODUCT_SRC_DIR}/numpy-1.5.1_SRC ; check_job ${PRODUCT_DIR}/MAKE.LOG python setup.py install --prefix=${PRODUCT_DIR}
-
-cd ${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC/lib
-list=`ls *.so`
-for aLib in $list; do
-cp -rf ${aLib} ${PRODUCT_DIR}/lib
-done
-
-cd ${PRODUCT_DIR}
-
-# remove sources and temporary files after building
-if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
-    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_binary()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-# create a product directory
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-# to generate environment script for sources
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-shift
-REMOVE_SRC_TMP=$8;
-test $# == 10 && shift && SINGLE_DIR=$9
-export PRODUCT="numpy-1.5.1"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/numpy.sh b/config_files/numpy.sh
new file mode 100755 (executable)
index 0000000..847cf21
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : numpy.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-2012 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+#
+# numpy and lapack versions
+#
+NUMPY_VERSION=1.5.1
+LAPACK_VERSION=3.3
+
+check_version(){
+# It is not necessary to check version!
+return 0
+}
+
+print_env_bin(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export PYTHONPATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
+export PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+makedir ${PRODUCT_SRC_DIR}
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/lapack-${LAPACK_VERSION}.tar.gz -C ${PRODUCT_SRC_DIR}
+check_jb tar xfz ${SOURCE_DIR}/numpy-${NUMPY_VERSION}.tar.gz -C ${PRODUCT_SRC_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+export LD_LIBRARY_PATH=${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC/lib:${LD_LIBRARY_PATH}
+
+# lapack cmake options
+CMAKE_OPTIONS="-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC -DBUILD_SHARED_LIBS:BOOL=ON"
+
+# install
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+cd ${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC
+check_job ${PRODUCT_DIR}/CONFIGURE.LOG cmake . ${CMAKE_OPTIONS}
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+cd ${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC/TESTING/MATGEN ; cp -rf *.so ${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC/lib
+cd ${PRODUCT_SRC_DIR}/numpy-${NUMPY_VERSION}_SRC ; check_job ${PRODUCT_DIR}/MAKE.LOG python setup.py install --prefix=${PRODUCT_DIR}
+
+cd ${PRODUCT_SRC_DIR}/lapack-${LAPACK_VERSION}_SRC/lib
+list=`ls *.so`
+for aLib in $list; do
+    cp -rf ${aLib} ${PRODUCT_DIR}/lib
+done
+
+cd ${PRODUCT_DIR}
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+test $# == 10 && shift && SINGLE_DIR=$9
+export PRODUCT="numpy-${NUMPY_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE