Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document python_zip_file #2544

Open
dougthor42 opened this issue Jan 3, 2025 · 0 comments
Open

docs: document python_zip_file #2544

dougthor42 opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@dougthor42
Copy link
Collaborator

It looks like the python_zip_file output group is not documented. Let's document it.

filegroup(
    name = some_binary_zip",
    srcs = [":some_binary"],  # the py_binary target to make into a zip, and will be the file name
    output_group = "python_zip_file",
)

That will generate bazel-bin/path/to/target/some_binary.zip which you can then execute via python some_binary.zip. You need a system python to extract, but the zip does bundle its own interpreter (so your system python can be a different version) and is otherwise fully hermetic.

@dougthor42 dougthor42 changed the title Chore: document python_zip_file Docs: document python_zip_file Jan 3, 2025
@dougthor42 dougthor42 changed the title Docs: document python_zip_file docs: document python_zip_file Jan 3, 2025
@dougthor42 dougthor42 self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant