示例#1
0
 def get_source_target(self):
     # when self.source_path is set, return a target around it
     # otherwise assume self.requires() returns a task with a single local target
     if self.source_path not in (NO_STR, None):
         return LocalFileTarget(self.source_path)
     else:
         return self.input()
示例#2
0
文件: __init__.py 项目: yrath/law
 def output(self):
     repo_base = os.path.basename(self.get_repo_path())
     return LocalFileTarget("{}_{}.tgz".format(repo_base, self.checksum))
示例#3
0
 def output(self):
     return LocalFileTarget("{}.tgz".format(
         os.path.basename(self.cmssw_path)))
示例#4
0
 def output(self):
     return LocalFileTarget("{}_{}.tgz".format(os.path.basename(self.repo_path), self.checksum))