Replies: 1 comment
|
Perhaps using a dummy target? py_library(
name = "foo",
virtual_deps = [
"bar",
],
)
py_library(
name = "dummy",
srcs = [],
)
py_binary(
name = "app",
srcs = [
"main.py",
],
main = "main.py",
deps = [
":foo",
],
resolutions = resolutions.empty().override({
"bar": ":dummy",
}),
) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was wondering if there is a way to express this in
rules_py?Pacakge
fooexpects requires packagebar(virtually):Then an
appexplicitly does not providebar, because it is expecte to be pre-installed on the deployment target host (such as Docker image):Is such a thing possible?
All reactions