コード例 #1
0
ファイル: setuputils.py プロジェクト: Gozala/ubiquity
 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)
コード例 #2
0
ファイル: setuputils.py プロジェクト: apilar/backup_tools
 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)
コード例 #3
0
ファイル: setuputils.py プロジェクト: BBBSnowball/paver
 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)
コード例 #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)