Skip to content

Commit

Permalink
python-2.7.14: Refactor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Feb 16, 2018
1 parent 5888bc5 commit 7603744
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions python-2.7.14-2.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7603744

Please sign in to comment.