Exemple #1
0
 def get_tasks(self):
     dist = _get_distribution()
     if has_setuptools:
         for ep in pkg_resources.iter_entry_points("distutils.commands"):
             try:
                 cmdclass = ep.load(False)  # don't require extras, we're not running
                 dist.cmdclass[ep.name] = cmdclass
             except:
                 # on the Mac, at least, installing from the tarball
                 # via zc.buildout fails due to a problem in the
                 # py2app command
                 tasks.environment.info("Could not load entry point: %s", ep)
     dist.get_command_list()
     return set(DistutilsTask(dist, key, value) for key, value in dist.cmdclass.items())
Exemple #2
0
 def get_tasks(self):
     dist = _get_distribution()
     if has_setuptools:
         for ep in pkg_resources.iter_entry_points('distutils.commands'):
             try:
                 cmdclass = ep.load(
                     False)  # don't require extras, we're not running
                 dist.cmdclass[ep.name] = cmdclass
             except:
                 # on the Mac, at least, installing from the tarball
                 # via zc.buildout fails due to a problem in the
                 # py2app command
                 tasks.environment.info("Could not load entry point: %s",
                                        ep)
     dist.get_command_list()
     return set(
         DistutilsTask(dist, key, value)
         for key, value in dist.cmdclass.items())