Skip to content

Commit 5cc7d2c

Browse files
committed
Updated to drop the use of git packeges and use only 'release' dependencies.
1 parent 849cfa8 commit 5cc7d2c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

helper-scripts/user-installer.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ set -o pipefail
2828
pyver=$(python3 --version |& sed 's/Python //')
2929
#required cython version
3030
if [ $(echo $pyver |grep -o "\.4\.") ]
31-
then
32-
cyver=0.20.2
33-
else
34-
cyver=0.18
31+
then
32+
cyver=0.22
33+
else
34+
cyver=0.18
3535
fi
3636
#URLs:
3737
seqclean_url="http://sourceforge.net/projects/seqclean/files/seqclean-x86_64.tgz/download"
3838
mira_url="http://sourceforge.net/projects/mira-assembler/files/MIRA/stable/mira_4.0.2_linux-gnu_x86_64_static.tar.bz2/download"
3939
blast_url="ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.28/ncbi-blast-2.2.28+-x64-linux.tar.gz"
4040
p7zip_url="http://sourceforge.net/projects/p7zip/files/p7zip/9.20.1/p7zip_9.20.1_x86_linux_bin.tar.bz2/download"
41-
#Temporary for pysam:
41+
#URLs for pysam and it's dependencies:
4242
setuptools_url="https://bootstrap.pypa.io/ez_setup.py"
4343
cython_url="https://github.com/cython/cython/archive/$cyver.tar.gz"
44-
pysam_url="https://github.com/pysam-developers/pysam.git"
44+
pysam_url="https://github.com/pysam-developers/pysam/archive/v0.8.2.tar.gz"
4545

4646

4747
#Create a dir for your new programs (change this to your preference):
@@ -58,6 +58,7 @@ wget -c -t inf $mira_url -O $dldir/mira_4.0rc4_linux-gnu_x86_64_static.tar.bz2
5858
wget -c -t inf $blast_url -P $dldir/
5959
wget -c -t inf $p7zip_url -O $dldir/p7zip_9.20.1_x86_linux_bin.tar.bz2
6060
wget -c -t inf $cython_url -P $dldir/
61+
wget -c -t inf $pysam_url -O $dldir/pysam-0.8.2.tar.gz
6162

6263

6364
#Extract and prepare the downloaded programs:
@@ -74,7 +75,7 @@ tar xfj $dldir/$i -C $workdir
7475
done
7576

7677

77-
#Temporary for pysam
78+
#Handling pysam and dependencies
7879
#Build setuptools
7980
cd $dldir
8081
wget --no-check-certificate $setuptools_url -O - | python3 - --user
@@ -83,19 +84,18 @@ wget --no-check-certificate $setuptools_url -O - | python3 - --user
8384
cd $workdir/cython-$cyver
8485
python3 setup.py install --user
8586

86-
#Download and build pysam
87-
git clone $pysam_url $workdir/pysam
88-
cd $workdir/pysam
87+
#Build pysam
88+
cd $workdir/pysam-0.8.2
8989
#Patch to disable automated cython
9090
sed -i '/cython/d' setup.py
9191
#install
9292
python3 setup.py install --user
9393

9494

9595
echo ""
96-
echo "If no errors occurred, (dead links, etc..) all of the software required \
97-
to run 4Pipe4 is now installed in userspace (except Blast2GO and emboss). \
98-
Please add the correct paths to your 4Pipe4rc file."
96+
echo "If you are reading this, than no errors occurred and all of the software \
97+
required to run 4Pipe4 is now installed in userspace (except Blast2GO and \
98+
emboss). Please add the correct paths to your 4Pipe4rc file."
9999
echo "You may now run emboss-user-installer.sh to download, compile and \
100100
install the required emboss programs."
101101
echo ""

0 commit comments

Comments
 (0)