Created
November 10, 2011 08:45
-
-
Save eduardostalinho/1354448 to your computer and use it in GitHub Desktop.
Instalation of ipython over pypy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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