Skip to content

Commit 6ce4e5c

Browse files
rickeylevLucas Ripoche
authored and
Lucas Ripoche
committed
Also expose is_singleton_depset on py_internal.
This will be necessary to implement `py_runtime` in regular Starlark, so expose it now so it's available later. Work towards bazelbuild#15897 PiperOrigin-RevId: 485180942 Change-Id: I9b79b9d3938de80307a94b6db37569c0a577f8d6
1 parent 1dc4d67 commit 6ce4e5c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/starlark/builtins_bzl/common/python/py_internal.bzl

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ Various builtin Starlark defined objects exposed for non-builtin Starlark.
1818
These may change at any time and are closely coupled to the rule implementation.
1919
"""
2020

21+
_py_builtins = _builtins.internal.py_builtins
22+
2123
# This replaces the Java-defined name using exports.bzl toplevels mapping.
22-
py_internal = struct()
24+
py_internal = struct(
25+
is_singleton_depset = _py_builtins.is_singleton_depset,
26+
)

0 commit comments

Comments
 (0)