From b706d715bb99e2c52eb916f6ae007a2f0e0f51cd Mon Sep 17 00:00:00 2001 From: hlqmj <1604432540@qq.com> Date: Tue, 16 Aug 2022 16:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LifeSciences/freesurfer-7.2/build.sh | 5 ++--- LifeSciences/freesurfer-7.2/dependency/sip-4.18.sh | 2 +- LifeSciences/freesurfer-7.2/freesurfer.sh | 5 +++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LifeSciences/freesurfer-7.2/build.sh b/LifeSciences/freesurfer-7.2/build.sh index a0810e5c..772e7312 100644 --- a/LifeSciences/freesurfer-7.2/build.sh +++ b/LifeSciences/freesurfer-7.2/build.sh @@ -41,8 +41,7 @@ yum install lapack-devel lapack-static blas-devel blas-static zlib-devel -y yum install libX11-devel libXmu-devel mesa-libGL-devel freeglut-devel libXi-devel -y yum install -y python3 python3-numpy libjpeg libtiff giflib gstreamer* libgtk* gtk2-devel libxvidcore* libx264* libgtk-3* gtk3-devel tbb openblas lapack jasper hdf5-devel protobuf yum install python-devel python3-devel -y -pip3 install h5py -pip3 install numpy +pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple h5py numpy bash $dep_dir/petsc-2.3.3.sh $buildpath $installpath @@ -87,7 +86,7 @@ cat >"pkg/freesurfer-7.2-hpc/run.sh" < /dev/null current_dir=\$(cd "\$(dirname "\${BASH_SOURCE[0]}")" &> /dev/null && pwd) for d in \$(ls \$current_dir) diff --git a/LifeSciences/freesurfer-7.2/dependency/sip-4.18.sh b/LifeSciences/freesurfer-7.2/dependency/sip-4.18.sh index 2e1bc1c6..a1730232 100644 --- a/LifeSciences/freesurfer-7.2/dependency/sip-4.18.sh +++ b/LifeSciences/freesurfer-7.2/dependency/sip-4.18.sh @@ -25,7 +25,7 @@ if [[ "$2" =~ .*/$ ]]; then installpath=${installpath%/*}; fi set -e yum install qt5-qtquickcontrols qt5-qtdeclarative-devel qt5-qtbase-devel -y yum install python-devel python3-devel -y -pip3 install h5py +pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple h5py wget -t 40 -c -P $buildpath http://nchc.dl.sourceforge.net/project/pyqt/sip/sip-4.18/sip-4.18.tar.gz tar -xzvf $buildpath/sip-4.18.tar.gz -C $buildpath && rm -rf $buildpath/sip-4.18.tar.gz cd $buildpath/sip-4.18 diff --git a/LifeSciences/freesurfer-7.2/freesurfer.sh b/LifeSciences/freesurfer-7.2/freesurfer.sh index 7f1e8393..979d6281 100644 --- a/LifeSciences/freesurfer-7.2/freesurfer.sh +++ b/LifeSciences/freesurfer-7.2/freesurfer.sh @@ -111,9 +111,10 @@ for file in $(find . -name flags.make); do sed -i 's/-fallow-invalid-boz//g' $fi for file in $(find . -name link.txt); do sed -i 's/-fallow-invalid-boz//g' $file; done for file in $(find . -name link.txt); do sed -i 's/flang/flang -fno-fortran-main/g' $file; done -sed -i "56i execute_process(COMMAND bash -c \"$installpath/freesurfer/python/bin/python3 -m pip install --upgrade --default-timeout=1000 --disable-pip-version-check $buildpath/tensorflow-2.2.0-cp37-none-linux_aarch64.whl --target=$installpath/freesurfer/python/packages\" RESULT_VARIABLE retcode)" python/cmake_install.cmake +sed -i "56i execute_process(COMMAND bash -c \"$installpath/freesurfer/python/bin/python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade --default-timeout=1000 --disable-pip-version-check $buildpath/tensorflow-2.2.0-cp37-none-linux_aarch64.whl --target=$installpath/freesurfer/python/packages\" RESULT_VARIABLE retcode)" python/cmake_install.cmake sed -i '56s/^/ &/g' python/cmake_install.cmake -sed -i '57s/--upgrade/--upgrade --default-timeout=1000/g' python/cmake_install.cmake +sed -i '57s/--upgrade/-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple --upgrade --default-timeout=1000/g' python/cmake_install.cmake +sed -i '43s/--upgrade/-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple --upgrade --default-timeout=1000/g' python/cmake_install.cmake make -j$(nproc) make install -- Gitee