Skip to content

Commit

Permalink
Fixed issue bazelbuild#648 for Python
Browse files Browse the repository at this point in the history
  • Loading branch information
grepwood@sucs.org committed Mar 30, 2023
1 parent 6db7c12 commit 41c647f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion python/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ def py_image(name, base = None, deps = [], layers = [], env = {}, **kwargs):
native.py_binary(
name = binary_name,
python_version = "PY2",
deps = deps + layers,
deps = depset(transitive = [
depset(deps),
depset(layers)
]),
exec_compatible_with = ["@io_bazel_rules_docker//platforms:run_in_container"],
**kwargs
)
Expand Down
5 changes: 4 additions & 1 deletion python3/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ def py3_image(name, base = None, deps = [], layers = [], env = {}, **kwargs):
py_binary(
name = binary_name,
python_version = "PY3",
deps = deps + layers,
deps = depset(transitive = [
depset(deps),
depset(layers)
]),
exec_compatible_with = ["@io_bazel_rules_docker//platforms:run_in_container"],
**kwargs
)
Expand Down

0 comments on commit 41c647f

Please sign in to comment.