Upcoming Bazel changes will remove the following APIs:
py_internal.add_py_extra_pseudo_action
py_internal.are_action_listeners_enabled
These APIs are to support the legacy "extra actions" stuff in Bazel, which isn't supported externally and only had a few dangling cases within Google that
are being removed.
Bazel issue: bazelbuild/bazel#16455