INNER CODE UNIT · Python

fail

ExplosionEngine/Explosion · ThirdParty/ConanRecipes/build_recipes.py:340

def fail(args, built, skipped, local, present, recipe: Recipe, message: str):
    print(f"\n!!! BUILD FAILED: {recipe.name} -- {message}", file=sys.stderr, flush=True)
    print_summary(built, skipped, local, present, failed=recipe)
    if args.upload:
        print("\nUpload skipped: not all recipes built successfully.", flush=True)
    sys.exit(1)


def configure_remote(args: argparse.Namespace):
    if args.remote_url:
        if run([args.conan, "remote", "add", "--force", args.remote, args.remote_url]) != 0:
            sys.exit("error: failed to register remote")

    if args.remote_user is not None:
        login = [args.conan, "remote", "login", args.remote, args.remote_user]
        redact: set[str] = set()
        if args.remote_password is not None:
            login += ["-p", args.remote_password]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…