Esempio n. 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()
Esempio n. 2
0
 def output(self):
     repo_base = os.path.basename(self.get_repo_path())
     return LocalFileTarget("{}_{}.tgz".format(repo_base, self.checksum))
Esempio n. 3
0
 def output(self):
     return LocalFileTarget("{}.tgz".format(
         os.path.basename(self.cmssw_path)))
Esempio n. 4
0
 def output(self):
     return LocalFileTarget("{}_{}.tgz".format(os.path.basename(self.repo_path), self.checksum))