From 8a6c3cc846f2bd890e5704abd82c6be5a4ef4650 Mon Sep 17 00:00:00 2001 From: Jeroen Ketema <93738568+jketema@users.noreply.github.com> Date: Wed, 11 Nov 2026 10:46:34 +0000 Subject: [PATCH] Disable implicit Python initializer generation Adopt explicit initializer handling for all Python targets, including external build tools, to eliminate rules_python's deprecation warnings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 647293b6-5562-41ec-a391-8c9fe6e926ab --- .bazelrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bazelrc b/.bazelrc index e34a363a16fc..0e41c93d185b 100644 --- a/.bazelrc +++ b/.bazelrc @@ -46,5 +46,7 @@ build --tool_java_language_version=17 build --tool_java_runtime_version=remotejdk_17 build --java_runtime_version=remotejdk_17 build --@rules_python//python/config_settings:python_version=3.12 +# Disable legacy Python initializer generation, including in external build tools. +build --incompatible_default_to_explicit_init_py try-import %workspace%/local.bazelrc