Table of Contents

Module: __init__ ./ez_setup/__init__.py

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:

    from ez_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.

Imported modules   
import os
import sys
Functions   
_validate_md5
download_setuptools
main
update_md5
use_setuptools
  _validate_md5 
_validate_md5 ( egg_name,  data )

  download_setuptools 
download_setuptools (
        version=DEFAULT_VERSION,
        download_base=DEFAULT_URL,
        to_dir=os.curdir,
        delay=15,
        )

Download setuptools from a specified location and return its filename

`version` should be a valid setuptools 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.

  main 
main ( argv,  version=DEFAULT_VERSION )

Install or upgrade setuptools and EasyInstall

  update_md5 
update_md5 ( filenames )

Update our built-in md5 registry

  use_setuptools 
use_setuptools (
        version=DEFAULT_VERSION,
        download_base=DEFAULT_URL,
        to_dir=os.curdir,
        download_delay=15,
        )

Automatically find/download setuptools and make it available on sys.path

`version` should be a valid setuptools 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 setuptools will be downloaded, if it is not already available. If `download_delay` is specified, it should be the number of seconds that will be paused before initiating a download, should one be required. If an older version of setuptools is installed, this routine will print a message to ``sys.stderr`` and raise SystemExit in an attempt to abort the calling script.


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:13 2024 by HappyDoc version 2.1