Reid D McKenzie
37266cdcd9
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.
32 lines
595 B
Python
32 lines
595 B
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("zapp.bzl",
|
|
"zapp_binary",
|
|
)
|
|
|
|
# Bootstrapping Zapp using py_binary
|
|
py_binary(
|
|
name = "zappc",
|
|
main = "src/python/zapp/compiler/__main__.py",
|
|
imports = [
|
|
"src/python",
|
|
],
|
|
)
|
|
|
|
# Zapp plugins used as a runtime library by rules_zapp
|
|
py_library(
|
|
name = "zapp_support",
|
|
srcs = glob(["src/python/zapp/support/**/*.py"]),
|
|
imports = [
|
|
"src/python",
|
|
],
|
|
)
|
|
|
|
# Zapped zapp
|
|
zapp_binary(
|
|
name = "zapzap",
|
|
main = "src/python/zapp/__main__.py",
|
|
imports = [
|
|
"src/python",
|
|
],
|
|
)
|