Ejemplo n.º 1
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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 4
0
    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
Ejemplo n.º 5
0
    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