Skip to content

Instantly share code, notes, and snippets.

@eduardostalinho
Created November 10, 2011 08:45
Show Gist options
  • Save eduardostalinho/1354448 to your computer and use it in GitHub Desktop.
Save eduardostalinho/1354448 to your computer and use it in GitHub Desktop.
Instalation of ipython over pypy
#!/bin/bash
if [ $(whoami) != root ]
then
echo "You must execute this script as root"
exit 1
fi
set -eux
cd /opt
wget "https://bitbucket.org/pypy/pypy/downloads/pypy-1.6-linux64.tar.bz2"
tar xvf pypy-1.6-linux64.tar.bz2
git clone https://github.com/ipython/ipython.git
cd ipython
/opt/pypy-1.6/bin/pypy setup.py install
echo "Now you have Ipython installed under pypy"
echo -e "\e[0;31mAdd these lines to your .bashrc:"
echo ""
echo -e " \e[0;32mexport PATH=\$PATH:/opt/pyp-1.6/bin"
echo -e " alias ipypy=/opt/pypy/bin/ipython"
echo ""
echo -e ""\e[0;31 After this, you can run it with the command \"ipypy\""
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment