Reid D McKenzie
a6d15bfc83
This commit implements zapp! and rules_zapp, as a proof of concept of lighter-weight easily hacked on self-extracting zipapps. Think Pex or Shiv but with less behavior and more user control. Or at least hackability.
18 lines
335 B
Python
18 lines
335 B
Python
load("//projects/zapp:zapp.bzl",
|
|
"zapp_binary",
|
|
)
|
|
|
|
zapp_binary(
|
|
name = "hello_script",
|
|
main = "hello.py",
|
|
# entry_point is inferred from main =
|
|
)
|
|
|
|
zapp_binary(
|
|
name = "hello_deps",
|
|
main = "hello.py",
|
|
# deps also get zapped via their underlying wheels
|
|
deps = [
|
|
py_requirement("pyyaml"),
|
|
]
|
|
)
|