"""
import sys
-DEFAULT_VERSION = "0.6c3"
+DEFAULT_VERSION = "0.6c5"
DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
def use_setuptools(
- version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir
+ version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, min_version=None
):
"""Automatically find/download setuptools and make it available on sys.path
import pkg_resources
try:
- pkg_resources.require("setuptools>="+version)
+ if not min_version:
+ min_version = version
+ pkg_resources.require("setuptools>="+min_version)
except pkg_resources.VersionConflict, e:
# XXX could we install in a subprocess here?
"The required version of setuptools (>=%s) is not available, and\n"
"can't be installed while this script is running. Please install\n"
" a more recent version first.\n\n(Currently using %r)"
- ) % (version, e.args[0])
+ ) % (min_version, e.args[0])
sys.exit(2)
def download_setuptools(
# more details.
from ez_setup import use_setuptools
-use_setuptools()
+use_setuptools(min_version='0.6a9')
from setuptools import Extension, find_packages, setup