Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)