2016-07-08 20:03:21 -07:00
#!/usr/bin/env bash
ROOT_DIR = $( cd " $( dirname " ${ BASH_SOURCE :- $0 } " ) " ; pwd )
platform = "unknown"
unamestr = " $( uname) "
if [ [ " $unamestr " = = "Linux" ] ] ; then
echo "Platform is linux."
platform = "linux"
elif [ [ " $unamestr " = = "Darwin" ] ] ; then
echo "Platform is macosx."
platform = "macosx"
else
echo "Unrecognized platform."
exit 1
fi
2016-11-12 19:37:20 -08:00
if [ [ $platform = = "linux" ] ] ; then
# These commands must be kept in sync with the installation instructions.
sudo apt-get update
2016-11-17 22:33:29 -08:00
sudo apt-get install -y cmake build-essential autoconf curl libtool python-dev python-numpy python-pip libboost-all-dev unzip nodejs npm
2016-11-12 19:37:20 -08:00
sudo pip install funcsigs colorama psutil redis
elif [ [ $platform = = "macosx" ] ] ; then
2016-07-08 20:03:21 -07:00
# check that brew is installed
which -s brew
if [ [ $? != 0 ] ] ; then
echo "Could not find brew, please install brew (see http://brew.sh/)."
exit 1
else
echo "Updating brew."
brew update
fi
# These commands must be kept in sync with the installation instructions.
2016-11-17 22:33:29 -08:00
brew install cmake automake autoconf libtool boost node
2016-07-08 20:03:21 -07:00
sudo easy_install pip
2016-11-05 21:34:11 -07:00
sudo pip install numpy funcsigs colorama psutil redis --ignore-installed six
2016-07-08 20:03:21 -07:00
fi
2016-10-28 14:30:20 -07:00
2016-11-12 19:37:20 -08:00
sudo pip install --upgrade git+git://github.com/cloudpipe/cloudpickle.git@0d225a4695f1f65ae1cbb2e0bbc145e10167cce4 # We use the latest version of cloudpickle because it can serialize named tuples.