diff --git a/LifeSciences/freesurfer-7.2/build.sh b/LifeSciences/freesurfer-7.2/build.sh index a0810e5ced19fb981ade414b35ddf34610fc829d..772e7312d9e36b0942e474552222ab9e66d96019 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 2e1bc1c664bbf5d59c275f68bff2cebb670ff2a1..a1730232710e3289cd26065e4162692fd1c28708 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 7f1e83938aeaeeec38c1682e912e3847cbb63018..979d62817baf4f549d2d373702b13721a15cb426 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