packages feed

cabal-buck2-0.6.0.0: buck2/prelude/python/tools/make_par/BUCK

load("@prelude//utils:source_listing.bzl", "source_listing")

oncall("plf_experience")

prelude = native

source_listing()

prelude.export_file(
    name = "__run_lpar_main__.py",
    src = "__run_lpar_main__.py",
    visibility = ["PUBLIC"],
)

prelude.export_file(
    name = "sitecustomize.py",
    src = "sitecustomize.py",
    visibility = ["PUBLIC"],
)

prelude.export_file(
    name = "_lpar_bootstrap.sh.template",
    src = "_lpar_bootstrap.sh.template",
    visibility = ["PUBLIC"],
)

prelude.export_file(
    name = "live_builder.py",
    src = "live_builder.py",
    visibility = ["PUBLIC"],
)

prelude.python_bootstrap_library(
    name = "live_builder",
    srcs = [
        "fbcode//tools/make_par:errors.py",
        "fbcode//tools/make_par:util.py",
        "live_builder.py",
        "par_builder.py",
    ],
)

prelude.export_file(
    name = "par_builder.py",
    src = "par_builder.py",
    visibility = ["PUBLIC"],
)

prelude.python_bootstrap_binary(
    name = "gen_lpar_bootstrap_bin",
    main = "gen_lpar_bootstrap.py",
    deps = [":live_builder"],
)

prelude.command_alias(
    name = "gen_lpar_bootstrap",
    args = [
        "--template",
        "$(location :_lpar_bootstrap.sh.template)",
    ],
    exe = ":gen_lpar_bootstrap_bin",
    visibility = ["PUBLIC"],
)