Home | Trees | Index | Help |
---|
Package vobject :: Module ez_setup |
|
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.Function Summary | |
---|---|
Download setuptools from a specified location and return its filename | |
Install or upgrade setuptools and EasyInstall | |
Update our built-in md5 registry | |
Automatically find/download setuptools and make it available on sys.path |
Variable Summary | |
---|---|
str |
DEFAULT_URL = 'http://cheeseshop.python.org/packages/2.4...
|
str |
DEFAULT_VERSION = '0.6c1'
|
dict |
md5_data = {'setuptools-0.6b2-py2.3.egg': '5657759d8a6d8...
|
Function Details |
---|
download_setuptools(version='0.6c1', download_base='http://cheeseshop.python.org/packages/2.4/s/setuptools/', to_dir='.', 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(argv, version='0.6c1')Install or upgrade setuptools and EasyInstall |
update_md5(filenames)Update our built-in md5 registry |
use_setuptools(version='0.6c1', download_base='http://cheeseshop.python.org/packages/2.4/s/setuptools/', to_dir='.', 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. |
Variable Details |
---|
DEFAULT_URL
|
DEFAULT_VERSION
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Dec 14 17:25:14 2007 | http://epydoc.sf.net |