4 ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null`
5 if [ "$ver" == "23.7" ]; then
12 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
13 #$DELIM ${PRODUCT_TYPE} $DELIM
14 export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages/Numeric:\${PYTHONPATH}
17 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
18 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
21 # looks for the native product and collects it's environment (used by make_env())
24 if [ $? -eq 0 ] ; then
25 pythonpath="`find_in_path Numeric.py ${PYTHONPATH}`"
26 tmp="${pythonpath} ${pythonpath} \${PYTHONPATH} ${PYTHONPATH}";
27 pythonpath=`sort_path ${tmp}`
28 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
29 #$DELIM ${PRODUCT_TYPE} $DELIM
30 export PYTHONPATH=${pythonpath}
33 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
40 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
46 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
47 source ${INSTALL_WORK}/$SHRC
49 makedir ${PRODUCT_DIR}
51 check_jb tar xfz ${SOURCE_DIR}/Numeric-23.7.tar.gz -C ${INSTALL_WORK}
54 # check existence of lapack, f77blas, cblas, atlas libraries
56 check_lib_version liblapack.so
57 if [ "$?" -ne "0" ] ; then
60 if [ "$found" -eq "1" ] ; then
61 check_lib_version libf77blas.so
62 if [ "$?" -ne "0" ] ; then
66 if [ "$found" -eq "1" ] ; then
67 check_lib_version libcblas.so
68 if [ "$?" -ne "0" ] ; then
72 if [ "$found" -eq "1" ] ; then
73 check_lib_version libatlas.so
74 if [ "$?" -ne "0" ] ; then
78 # if any library is not found modify build procedure
79 if [ "$found" -eq "0" ] ; then
80 cp setup.py setup.py.orig
81 sed -e "s%^use_dotblas = 1%use_dotblas = 0%g" -e "s%^libraries_list = \['lapack', 'cblas', 'f77blas', 'atlas', 'g2c'\]%libraries_list = \['g2c'\]%g" setup.py.orig > setup.py
85 check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
87 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
88 cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
94 check_jb tar xfz ${SOURCE_DIR}/Numeric-23.7.tar.gz -C ${INSTALL_ROOT}
100 export INSTALL_WORK=$2;
101 export SOURCE_DIR=$3;
102 export INSTALL_ROOT=$4;
103 export PRODUCT_SEQUENCE=$5;
104 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="numeric" ; fi
105 export PRODUCT="Numeric-23.7"
106 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
107 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}