Revision 21 as of 2009-07-18 16:52:13

Clear message

"""Bootstrap setuptools 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::

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. """ import sys DEFAULT_VERSION = "0.6c9" DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]

md5_data = {

}

import sys, os try: from hashlib import md5 except ImportError: from md5 import md5

def _validate_md5(egg_name, data):

def use_setuptools(

):

def download_setuptools(

):


This script requires setuptools version %s to run (even to display help). I will attempt to download it for you (from %s), but you may need to enable firewall access for this script first. I will start the download in %d seconds.

(Note: if this machine does not have network access, please obtain the file

and place it in this directory before rerunning this script.)


""",

def main(argv, version=DEFAULT_VERSION):

def update_md5(filenames):

if name=='main':

Unable to edit the page? See the FrontPage for instructions.