Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Installation Script - tested on an ubuntu/trusty64 vagrant box

# Show all commands being run
#set -x

# Error out if one fails
set -e

apt-get install -y swig swig2.0 libssl-dev python-dev

# Newer version in PyPI
#apt-get install -y python-requests

# Newer version in PyPI
#apt-get install -y python-m2crypto

apt-get install -y python-pil

# Install pip and install pytnon requirements through it
apt-get install -y python-pip
pip install -r requirements.txt

# This binary is distributed with the code base, version is
# more recent then the one in the ubuntu repo (1.9.1 vs 1.9.0)
#apt-get install -y phantomjs

# Grab the latest of phantomjs it directly from the source
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2

phantom_md5sum=`md5sum phantomjs-1.9.8-linux-x86_64.tar.bz2 | cut -d' ' -f1`
checksum="4ea7aa79e45fbc487a63ef4788a18ef7"

if [ "$phantom_md5sum" != "$checksum" ]
then
echo "phantomjs checksum mismatch"
exit 254
fi

tar xvf phantomjs-1.9.8-linux-x86_64.tar.bz2
mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs

4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
m2crypto
requests
selenium
beautifulsoup4