jcanfield
7/13/2013 - 4:29 AM

Install Python easy_setup on Unix-based Systems. This is just a quick command and usage should be read up on as well as alternatives. (easy

Install Python easy_setup on Unix-based Systems. This is just a quick command and usage should be read up on as well as alternatives. (easy_setup is not always the best way to go for Python Package management).

#!/bin/bash
# Please reference this URI for more information, https://pypi.python.org/pypi/setuptools/0.8

echo "--> Downloading Python's easy_setup Tools and Installing..."

# Install System-wide
wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py -O - | python

# Install in User folder
# $ wget https://bitbucket.org/pypa/setuptools/raw/0.8/ez_setup.py
# $ python ez_setup.py --user

# Advanced Setup
# Download Tarball from https://pypi.python.org/pypi/setuptools
# Run configuration
# $ python setup.py --prefix=/opt/setuptools

echo "--> Script complete."