From 4747ac0e8391c1e4f02354b177be685bff48241a Mon Sep 17 00:00:00 2001 From: inv Date: Wed, 31 Mar 2010 13:46:20 +0000 Subject: [PATCH] Adding numpy prerequisit --- config_files/numpy-1.3.0.sh | 143 ++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100755 config_files/numpy-1.3.0.sh diff --git a/config_files/numpy-1.3.0.sh b/config_files/numpy-1.3.0.sh new file mode 100755 index 0000000..624a3e7 --- /dev/null +++ b/config_files/numpy-1.3.0.sh @@ -0,0 +1,143 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : numpy-1.3.0.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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < /dev/null + if [ $? == 0 ] ; then is_debian31=1 ; fi +fi + +if [ $is_debian31 == 1 ] ; then +export LAPACKSUFF="3.1.1" +else +export LAPACKSUFF="3.2" +fi + +export LD_LIBRARY_PATH=${PRODUCT_SRC_DIR}/lapack-${LAPACKSUFF}_SRC:${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.3.0.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} + +# install +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG <