Example #1
0
 def setUpClass(cls) -> None:
     """
     The class setup, ensures the log directory is ready
     """
     # pylint: disable=no-member
     get_global_conf().set("install", "make_args",
                           "-j,-l{}".format(multiprocessing.cpu_count()))
     setup_logging()
Example #2
0
    :param force: True to force reinstall of the programs, else will only install the ones that are not installed
    """
    if __interactive__ and update.update():
        logging.error("An error occurred, could not finish configuration")
        return 1

    try:
        install(force)
        setup_coredumps()

        hooks.load_plugins()
        hooks.configure(force)
    except (exceptions.InstallationErrorException,
            exceptions.DistributionNotSupportedException) as exception:
        logging.error(exception)
        logging.error(
            "Configure script failed. Please rerun it after correcting errors. You can add --default in order"
            " to skip questions")
        return 1

    finally:
        logging.verbose("Cleaning environment")


if __name__ == "__main__":
    try:
        logger.setup_logging()
        exit(main(*parse_args()))
    except KeyboardInterrupt:
        exit(1)