Esempio n. 1
0
 def _clean(self):
     # Use scons if possible otherwise fallback to hardcoded files to delete.
     if os.path.exists(SCONS):
         utils.run_scons(extraargs="--clean")
     else:
         for file in DEL_FILES:
             if os.path.exists(file):
                 os.remove(file)
     return Builder._clean(self)
Esempio n. 2
0
 def _clean(self):
 # Use scons if possible otherwise fallback to hardcoded files to delete.
     if os.path.exists(SCONS):
         utils.run_scons(extraargs="--clean")
     else:
         for file in DEL_FILES:
             if os.path.exists(file):
                 os.remove(file)
     return Builder._clean(self)
Esempio n. 3
0
 def _install(self):
     # ignore pylint target
     if "pylint" in self._comopts:
         return
     self._opts += self.get_parallel_opt()
     btgt = "%s %s prefix=%s" % (' '.join(self._btargets),
                                 self._opts, self._prefix)
     utils.run_scons(extraargs=btgt, version=self.sconsversion,
                     extraquiet=self.nowarnings)
     self._version_install()
Esempio n. 4
0
 def _install(self):
     # ignore pylint target
     if "pylint" in self._comopts:
         return
     self._opts += self.get_parallel_opt()
     btgt = "%s %s prefix=%s" % (' '.join(
         self._btargets), self._opts, self._prefix)
     utils.run_scons(extraargs=btgt,
                     version=self.sconsversion,
                     extraquiet=self.nowarnings)
     self._version_install()
Esempio n. 5
0
 def _clean(self):
     try:
         utils.run_scons(extraargs="--clean . tidy", version=self.sconsversion)
     except Exception, inst:
         utils.q_print("info: could not run %s. Will try our clean." % inst)
Esempio n. 6
0
 def _doc(self):
     utils.run_scons(version=self.sconsversion)
Esempio n. 7
0
 def _testtgt(self, tgt):
     utils.run_scons(extraargs=tgt, version=self.sconsversion)
Esempio n. 8
0
 def _clean(self):
     try:
         utils.run_scons(extraargs="--clean . tidy",
                         version=self.sconsversion)
     except Exception, inst:
         utils.q_print("info: could not run %s. Will try our clean." % inst)
Esempio n. 9
0
 def _doc(self):
     utils.run_scons(version=self.sconsversion)
Esempio n. 10
0
 def _testtgt(self, tgt):
     utils.run_scons(extraargs=tgt, version=self.sconsversion)