From: vsr Date: Wed, 28 Dec 2005 11:21:23 +0000 (+0000) Subject: Fix wrong compilation of Numeric 23.7 from sources X-Git-Tag: V_2_2_7~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e13389f9890629e52c4098454699db55f15eb59b;p=tools%2Finstall.git Fix wrong compilation of Numeric 23.7 from sources --- diff --git a/config_Mandrake_10.1.xml b/config_Mandrake_10.1.xml index a59e80b..b712933 100755 --- a/config_Mandrake_10.1.xml +++ b/config_Mandrake_10.1.xml @@ -163,8 +163,8 @@ supported="install sources,install binaries" disable="false" dependancies="gcc,Python" - installdiskspace="1177" - temporarydiskspace="5304" + installdiskspace="2396" + temporarydiskspace="7840" script="Numeric-23.7.sh"/> _setup.py + mv _setup.py setup.py fi -fi -if [ "$found" -eq "1" ] ; then - check_lib_version libcblas.so - if [ "$?" -ne "0" ] ; then - found=0 + if [ "$f77blas_nf" -eq "1" ] ; then + sed -e "s%\(^libraries_list = \[.*\)\('f77blas', \)\(.*\)$%\1\3%g" setup.py > _setup.py + mv _setup.py setup.py fi -fi -if [ "$found" -eq "1" ] ; then - check_lib_version libatlas.so - if [ "$?" -ne "0" ] ; then - found=0 + if [ "$cblas_nf" -eq "1" ] ; then + sed -e "s%\(^libraries_list = \[.*\)\('cblas', \)\(.*\)$%\1\3%g" setup.py > _setup.py + mv _setup.py setup.py fi -fi -# if any library is not found modify build procedure -if [ "$found" -eq "0" ] ; then - cp setup.py setup.py.orig - 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 + if [ "$atlas_nf" -eq "1" ] ; then + sed -e "s%\(^libraries_list = \[.*\)\('atlas', \)\(.*\)$%\1\3%g" setup.py > _setup.py + mv _setup.py setup.py + fi + if [ "$g2c_nf" -eq "1" ] ; then + sed -e "s%\(^libraries_list = \[.*\)\('g2c'\)\(.*\)$%\1\3%g" setup.py > _setup.py + mv _setup.py setup.py + fi + sed -e "s%^use_dotblas = 1%use_dotblas = 0%g" setup.py > _setup.py + mv _setup.py setup.py + sed -e "s%#\(os.path.join('Src', 'blas_lite.c'),\)%\1%g" setup.py > _setup.py + mv _setup.py setup.py + sed -e "s%#\(os.path.join('Src', 'f2c_lite.c'),\)%\1%g" setup.py > _setup.py + mv _setup.py setup.py + sed -e "s%#\(os.path.join('Src', 'zlapack_lite.c'),\)%\1%g" setup.py > _setup.py + mv _setup.py setup.py + sed -e "s%#\(os.path.join('Src', 'dlapack_lite.c')\)%\1%g" setup.py > _setup.py + mv _setup.py setup.py chmod a+x setup.py fi