distribute_setup module

Bootstrap distribute installation

If you want to use setuptools in your package’s setup.py, just include this file in the same directory with it, and add this to the top of your setup.py:

from distribute_setup import use_setuptools
use_setuptools()

If you want to require a specific version of setuptools, set a download mirror, or use an alternate download directory, you can do so by supplying the appropriate options to use_setuptools().

This file can also be run as a script to install or upgrade setuptools.

distribute_setup.download_setuptools(version='0.6.49', download_base='http://pypi.python.org/packages/source/d/distribute/', to_dir='.', delay=15)

Download distribute from a specified location and return its filename

version should be a valid distribute version number that is available as an egg for download under the download_base URL (which should end with a ‘/’). to_dir is the directory where the egg will be downloaded. delay is the number of seconds to pause before an actual download attempt.

distribute_setup.main(version='0.6.49')

Install or upgrade setuptools and EasyInstall

distribute_setup.use_setuptools(version='0.6.49', download_base='http://pypi.python.org/packages/source/d/distribute/', to_dir='.', download_delay=15, no_fake=True)