예제 #1
0
파일: eigen3.py 프로젝트: cpieloth/CppMath
    def _install(self):
        success = True

        if success and UtilsUI.ask_for_execute("Download " + self.name):
            success = success and self.__download()
        if success and UtilsUI.ask_for_execute("Initialize " + self.name):
            success = success and self.__initialize()

        return success
예제 #2
0
    def _install(self):
        success = True

        if success and UtilsUI.ask_for_execute("Download " + self.name):
            success = success and self.__download()
        if success and UtilsUI.ask_for_execute("Initialize " + self.name):
            success = success and self.__initialize()

        return success
예제 #3
0
 def __compile_install(self):
     UtilsUI.print_step_begin("Compiling & Installing")
     build_dir = os.path.join(self.arg_dest, self.REPO_FOLDER,
                              self.BUILD_FOLDER)
     os.chdir(build_dir)
     jobs = UtilsUI.ask_for_make_jobs()
     call("make -j" + str(jobs), shell=True)
     if UtilsUI.ask_for_execute(
             "Install PCL to system? (requires root/sudo)"):
         call("sudo make install", shell=True)
     UtilsUI.print_step_end("Compiling & Installing")
     return True
예제 #4
0
파일: job.py 프로젝트: cpieloth/PackBacker
    def execute(self):
        errors = 0
        for i in self._installers:
            if not UtilsUI.ask_for_execute('Install ' + i.label):
                continue

            try:
                if i.install():
                    Job.log.info(i.name + ' executed.')
                else:
                    errors += 1
                    Job.log.error('Error on executing ' + i.name + '!')
            except Exception as ex:
                errors += 1
                Job.log.error('Unknown error:\n' + str(ex))
        return errors
예제 #5
0
파일: job.py 프로젝트: cpieloth/CppMath
    def execute(self):
        errors = 0
        for i in self._installers:
            if not UtilsUI.ask_for_execute('Install ' + i.label):
                continue

            try:
                if i.install():
                    Job.log.info(i.name + ' executed.')
                else:
                    errors += 1
                    Job.log.error('Error on executing ' + i.name + '!')
            except Exception as ex:
                errors += 1
                Job.log.error('Unknown error:\n' + str(ex))
        return errors