You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 nameoutput_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.
The text was updated successfully, but these errors were encountered:
dougthor42
changed the title
Chore: document python_zip_file
Docs: document python_zip_fileJan 3, 2025
dougthor42
changed the title
Docs: document python_zip_file
docs: document python_zip_fileJan 3, 2025
It looks like the
python_zip_file
output group is not documented. Let's document it.That will generate
bazel-bin/path/to/target/some_binary.zip
which you can then execute viapython 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.The text was updated successfully, but these errors were encountered: