From 7603744dd87fe992cf6055cabd1e03b3b15ece06 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 16 Feb 2018 09:48:46 +0100 Subject: [PATCH] python-2.7.14: Refactor Move function plaininstall() towards the beginning of the file. This makes it easier to exclude parts of the script via `if false; then`...`fi` during development. --- python-2.7.14-2.build.sh | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/python-2.7.14-2.build.sh b/python-2.7.14-2.build.sh index adb048b..3a7966f 100755 --- a/python-2.7.14-2.build.sh +++ b/python-2.7.14-2.build.sh @@ -31,6 +31,21 @@ BUILDDIR=$PREFIX/build mkdir -p $BUILDDIR cd $BUILDDIR +function plaininstall() { + local dir=$1 + local tar=$2 + local url=$3 + ( + cd $BUILDDIR + test -e $tar || wget $url + test -d $dir || tar xvf $tar + cd $dir + ./configure --prefix=$PREFIX + make -j $(nproc) + make install + ) +} + URL=https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz test -e Python-$VERSION.tgz || wget $URL test -d Python-$VERSION || tar xf Python-$VERSION.tgz @@ -111,21 +126,6 @@ pip install tensorflow-gpu pip install biopython # wird von bressin fuer python3 benutzt. klingt gut, ist in metaseq requirement drin pip install git+git://github.com/tanghaibao/jcvi.git # angefragt von Dr. Jun Yang -function plaininstall() { - local dir=$1 - local tar=$2 - local url=$3 - ( - cd build - test -e $tar || wget $url - test -d $dir || tar xvf $tar - cd $dir - ./configure --prefix=$PREFIX - make -j $(nproc) - make install - ) -} - # for Klages # pip install GPy distribute h5py igraph ranger pep8