Skip to content

Commit

Permalink
Tolerate import errors when loading extra commands for "setup.py --he…
Browse files Browse the repository at this point in the history
…lp-commands"

and bump zetuptoolz version to 0.6c16dev4. fixes #1405

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
  • Loading branch information
David-Sarah Hopwood committed Mar 17, 2013
1 parent 5082ca4 commit 0e20ab6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Expand Up @@ -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
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion setuptools-0.6c16dev3.egg/setuptools/__init__.py
Expand Up @@ -9,7 +9,7 @@
import os
import sys

__version__ = '0.6c16dev3'
__version__ = '0.6c16dev4'
__all__ = [
'setup', 'Distribution', 'Feature', 'Command', 'Extension', 'Require',
'find_packages'
Expand Down
10 changes: 5 additions & 5 deletions setuptools-0.6c16dev3.egg/setuptools/dist.py
Expand Up @@ -400,14 +400,14 @@ def get_command_class(self, command):
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)
Expand Down
5 changes: 4 additions & 1 deletion setuptools-0.6c16dev3.egg/zetuptoolz.txt
Expand Up @@ -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:

<http://bugs.python.org/setuptools/issue17>
"easy_install will install a package that is already there"
Expand All @@ -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.)

<https://tahoe-lafs.org/trac/zetuptoolz/ticket/4>
"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:
Expand Down

0 comments on commit 0e20ab6

Please sign in to comment.