Exemplo n.º 1
0
 def get_task(self, taskname):
     dist = _get_distribution()
     command_name = _get_shortname(taskname)
     try:
         command_class = dist.get_command_class(command_name)
     except DistutilsModuleError:
         return None
     return DistutilsTask(dist, command_name, command_class)
Exemplo n.º 2
0
 def get_task(self, taskname):
     dist = _get_distribution()
     command_name = _get_shortname(taskname)
     try:
         command_class = dist.get_command_class(command_name)
     except DistutilsModuleError:
         return None
     return DistutilsTask(dist, command_name, command_class)
Exemplo n.º 3
0
 def get_task(self, taskname):
     dist = _get_distribution()
     environ = tasks.environment
     dist.command_packages = getattr(environ, 'command_packages', None)
     command_name = _get_shortname(taskname)
     try:
         command_class = dist.get_command_class(command_name)
     except DistutilsModuleError:
         return None
     return DistutilsTask(dist, command_name, command_class)
Exemplo n.º 4
0
 def get_task(self, taskname):
     dist = _get_distribution()
     environ = tasks.environment
     dist.command_packages = getattr(environ, 'command_packages', None)
     command_name = _get_shortname(taskname)
     try:
         command_class = dist.get_command_class(command_name)
     except DistutilsModuleError:
         return None
     return DistutilsTask(dist, command_name, command_class)