From 5bdaca6d373dba2837a681a20c523d11c30d653e Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Thu, 12 Feb 2026 15:56:20 -0800 Subject: [PATCH] chore: print zipapp deprecation for non-windows platforms --- python/private/py_executable.bzl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/private/py_executable.bzl b/python/private/py_executable.bzl index 45a18abb05..7ff6278e02 100644 --- a/python/private/py_executable.bzl +++ b/python/private/py_executable.bzl @@ -379,9 +379,10 @@ def _create_executable( # When --build_python_zip is enabled, then the zip file becomes # one of the default outputs. if build_zip_enabled: - # buildifier: disable=print - print( - """ + if not is_windows: + # buildifier: disable=print + print( + """ ====================================================================== WARNING: Target: {} The `--build_python_zip` flag and implicit zipapp output of `py_binary` @@ -392,7 +393,7 @@ WARNING: Target: {} https://github.com/bazel-contrib/rules_python/issues/3567 ====================================================================== """.rstrip().format(ctx.label), - ) + ) extra_default_outputs.append(zip_file)