Mercurial
view mrjunejune/inference/python_zip.bzl @ 281:c57149ad216e default tip
Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 18 Aug 2026 22:18:15 -0700 |
| parents | 1f9877b637e9 |
| children |
line wrap: on
line source
def _python_zip_file_impl(ctx): files = ctx.attr.binary[OutputGroupInfo].python_zip_file return DefaultInfo( files = files, runfiles = ctx.runfiles(files = files.to_list()), ) python_zip_file = rule( implementation = _python_zip_file_impl, attrs = { "binary": attr.label( mandatory = True, providers = [OutputGroupInfo], ), }, )