Skip to content

Commit 16f4ae9

Browse files
committed
Merge pull request breenmachine#5 from RyPeck/install_script_for_ubuntu_trusty
Install script for Ubuntu Trusty
2 parents 6188c63 + 998fc1c commit 16f4ae9

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

‎install-dependencies.sh‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Installation Script - tested on an ubuntu/trusty64 vagrant box
2+
3+
# Show all commands being run
4+
#set -x
5+
6+
# Error out if one fails
7+
set -e
8+
9+
apt-get install -y swig swig2.0 libssl-dev python-dev
10+
11+
# Newer version in PyPI
12+
#apt-get install -y python-requests
13+
14+
# Newer version in PyPI
15+
#apt-get install -y python-m2crypto
16+
17+
apt-get install -y python-pil
18+
19+
# Install pip and install pytnon requirements through it
20+
apt-get install -y python-pip
21+
pip install -r requirements.txt
22+
23+
# This binary is distributed with the code base, version is
24+
# more recent then the one in the ubuntu repo (1.9.1 vs 1.9.0)
25+
#apt-get install -y phantomjs
26+
27+
# Grab the latest of phantomjs it directly from the source
28+
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
29+
30+
phantom_md5sum=`md5sum phantomjs-1.9.8-linux-x86_64.tar.bz2 | cut -d' ' -f1`
31+
checksum="4ea7aa79e45fbc487a63ef4788a18ef7"
32+
33+
if [ "$phantom_md5sum" != "$checksum" ]
34+
then
35+
echo "phantomjs checksum mismatch"
36+
exit 254
37+
fi
38+
39+
tar xvf phantomjs-1.9.8-linux-x86_64.tar.bz2
40+
mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
41+

‎requirements.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
m2crypto
2+
requests
3+
selenium
4+
beautifulsoup4

0 commit comments

Comments
 (0)