Commit bd695daf authored by Andrew Gibiansky's avatar Andrew Gibiansky

Merge pull request #473 from sumitsahrawat/docker

Allow using pre-installed ipython
parents 6b5f6785 6e1dc829
...@@ -3,33 +3,35 @@ ...@@ -3,33 +3,35 @@
# Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory. # Installation for Linux (tested on Ubuntu 14.10) from IHaskell repo directory.
# TODO Split out setup for installation from Hackage released versions. # TODO Split out setup for installation from Hackage released versions.
ghc --version >& /dev/null if [ -z "$(which ghc)" ]; then
if [ $? ]; then
true
else
echo "Please install ghc." echo "Please install ghc."
exit 1
fi fi
cabal --version >& /dev/null if [ -z "$(which cabal)" ]; then
if [ $? ]; then
true
else
echo "Please install Cabal." echo "Please install Cabal."
exit 1
fi fi
# Install IPython. # If ipython is installed, and has a major version >= 3, then use the
# python-pip is out of date, causes problems, so we get the latest version # installed version. Otherwise we install from scratch.
# using easy_install instead. if [ -n "$(which ipython)" ] && { [ $(ipython --version | tr '.' ' ' | cut -f 1 -d ' ') -ge 3 ]; } then
#sudo apt-get install python-pip echo "Using ipython already installed:" "$(which ipython)"
sudo apt-get install -y python-dev else
# Install IPython.
# python-pip is out of date, causes problems, so we get the latest version
# using easy_install instead.
#sudo apt-get install python-pip
sudo apt-get install -y python-dev
# To get easy_install # To get easy_install
sudo apt-get install -y python-setuptools sudo apt-get install -y python-setuptools
sudo easy_install -U pip sudo easy_install -U pip
# -H to use .cache in /root # -H to use .cache in /root
sudo -H pip install -U 'ipython[all]' sudo -H pip install -U 'ipython[all]'
fi
# Make sure to have basic tools installed. # Make sure to have basic tools installed.
cabal update cabal update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment