Skip to content

Commit

Permalink
Merged in nakatoio/setuptools/get_command_list (pull request #163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 25, 2015
2 parents 9578a0f + fc916c8 commit c0b65ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setuptools/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,14 @@ def print_commands(self):
self.cmdclass[ep.name] = cmdclass
return _Distribution.print_commands(self)

def get_command_list(self):
for ep in pkg_resources.iter_entry_points('distutils.commands'):
if ep.name not in self.cmdclass:
# don't require extras as the commands won't be invoked
cmdclass = ep.resolve()
self.cmdclass[ep.name] = cmdclass
return _Distribution.get_command_list(self)

def _set_feature(self,name,status):
"""Set feature's inclusion status"""
setattr(self,self._feature_attrname(name),status)
Expand Down

0 comments on commit c0b65ef

Please sign in to comment.