From: David-Sarah Hopwood Date: Sun, 17 Mar 2013 16:42:59 +0000 (+0000) Subject: Tolerate import errors when loading extra commands for "setup.py --help-commands" X-Git-Tag: allmydata-tahoe-1.10a1~9 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/simplejson/nxhtml.html?a=commitdiff_plain;h=0e20ab6003dec602b3adb53b6ec029cd535bec98;p=tahoe-lafs%2Ftahoe-lafs.git Tolerate import errors when loading extra commands for "setup.py --help-commands" and bump zetuptoolz version to 0.6c16dev4. fixes #1405 Signed-off-by: David-Sarah Hopwood --- diff --git a/MANIFEST.in b/MANIFEST.in index fdf76874..407b6814 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -8,5 +8,5 @@ graft misc graft static graft darcsver-1.7.2.egg -graft setuptools-0.6c16dev3.egg +graft setuptools-0.6c16dev4.egg global-exclude *~ *.pyc diff --git a/setuptools-0.6c16dev3.egg/EGG-INFO/PKG-INFO b/setuptools-0.6c16dev3.egg/EGG-INFO/PKG-INFO index c9df489d..f8c5e166 100644 --- a/setuptools-0.6c16dev3.egg/EGG-INFO/PKG-INFO +++ b/setuptools-0.6c16dev3.egg/EGG-INFO/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: setuptools -Version: 0.6c16dev3 +Version: 0.6c16dev4 Summary: Download, build, install, upgrade, and uninstall Python packages -- easily! (zetuptoolz fork) Home-page: http://pypi.python.org/pypi/setuptools Author: Phillip J. Eby diff --git a/setuptools-0.6c16dev3.egg/setuptools/__init__.py b/setuptools-0.6c16dev3.egg/setuptools/__init__.py index d57448f4..8b4f1cac 100644 --- a/setuptools-0.6c16dev3.egg/setuptools/__init__.py +++ b/setuptools-0.6c16dev3.egg/setuptools/__init__.py @@ -9,7 +9,7 @@ import os.path import os import sys -__version__ = '0.6c16dev3' +__version__ = '0.6c16dev4' __all__ = [ 'setup', 'Distribution', 'Feature', 'Command', 'Extension', 'Require', 'find_packages' diff --git a/setuptools-0.6c16dev3.egg/setuptools/dist.py b/setuptools-0.6c16dev3.egg/setuptools/dist.py index 482c6bf2..aff5b2a2 100644 --- a/setuptools-0.6c16dev3.egg/setuptools/dist.py +++ b/setuptools-0.6c16dev3.egg/setuptools/dist.py @@ -400,14 +400,14 @@ class Distribution(_Distribution): def print_commands(self): for ep in pkg_resources.iter_entry_points('distutils.commands'): if ep.name not in self.cmdclass: - cmdclass = ep.load(False) # don't require extras, we're not running - self.cmdclass[ep.name] = cmdclass + try: + cmdclass = ep.load(False) # don't require extras, we're not running + self.cmdclass[ep.name] = cmdclass + except ImportError: + pass # see https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1405 return _Distribution.print_commands(self) - - - def _set_feature(self,name,status): """Set feature's inclusion status""" setattr(self,self._feature_attrname(name),status) diff --git a/setuptools-0.6c16dev3.egg/zetuptoolz.txt b/setuptools-0.6c16dev3.egg/zetuptoolz.txt index 25c029d0..b4729c7f 100644 --- a/setuptools-0.6c16dev3.egg/zetuptoolz.txt +++ b/setuptools-0.6c16dev3.egg/zetuptoolz.txt @@ -3,7 +3,7 @@ setuptools trunk r80621 (which is current as of 2010-08-31), with the following differences: - * Zooko's patches for the following bugs and features have been applied: + * Zooko's and David-Sarah's patches for the following bugs and features have been applied: "easy_install will install a package that is already there" @@ -16,6 +16,9 @@ differences: (Note: this patch does not work as intended when site.py has been modified. This will be fixed in a future version.) + + "python setup.py --help-commands raises exception due to conflict with distribute" + * The following patch to setuptools introduced bugs, and has been reverted in zetuptoolz: