diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-25 09:50:32 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-25 09:50:32 -0500 |
| commit | c0b65ef4527436efcaaa945189408f4b2b825447 (patch) | |
| tree | 5144377a1afb60128cbc15a6b74afdd739757a62 /setuptools | |
| parent | 9578a0f640dac57f95a391c9f2a1ebdaba1a0846 (diff) | |
| parent | fc916c8ea1f7ac0ee5cc56dfaa0ab4ef6aee1cfb (diff) | |
| download | python-setuptools-git-c0b65ef4527436efcaaa945189408f4b2b825447.tar.gz | |
Merged in nakatoio/setuptools/get_command_list (pull request #163)
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/dist.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index b0c52838..c1421b0f 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -439,6 +439,14 @@ class Distribution(_Distribution): 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) |
