Last active
December 12, 2015 04:08
-
-
Save shiroyuki/4712370 to your computer and use it in GitHub Desktop.
Minimal Setup Script for Python 3.3
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
| #!/usr/bin/sh | |
| echo "Downloading Python 3.3" &&\ | |
| rm -Rf python3.3 &&\ | |
| mkdir python3.3 &&\ | |
| cd python3.3 &&\ | |
| curl -O http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz &&\ | |
| curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py &&\ | |
| curl -O http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz &&\ | |
| echo "Extracting packages" &&\ | |
| tar xzf Python-3.3.0.tgz &&\ | |
| tar xzf distribute-0.6.34.tar.gz &&\ | |
| echo "Configuring Python 3.3" &&\ | |
| cd Python-3.3.0 &&\ | |
| ./configure --with-cxx-main=g++ &&\ | |
| echo "Building Python 3.3" &&\ | |
| make &&\ | |
| echo "Installing Python 3.3" &&\ | |
| sudo make altinstall &&\ | |
| echo "Installing python-distribute 0.6.34" &&\ | |
| cd ../distribute-0.6.34 &&\ | |
| sudo python3.3 setup.py install &&\ | |
| cd ../ &&\ | |
| echo "Installing PIP" &&\ | |
| sudo python3.3 get-pip.py &&\ | |
| cd ../ &&\ | |
| echo "Cleaning up Python 3.3" &&\ | |
| sudo rm -Rf python3.3 &&\ | |
| echo "Python 3.3 installed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment