Skip to content

Commit a0f96de

Browse files
rickeylevaignas
andauthored
make build_zip_enabled a one liner
Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
1 parent 311c166 commit a0f96de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/py_executable.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def _create_executable(
398398
extra_default_outputs = []
399399

400400
# NOTE: --build_python_zip defaults to true on Windows
401-
build_zip_enabled = read_possibly_native_flag(ctx, "build_python_zip")
401+
build_zip_enabled = read_possibly_native_flag(ctx, "build_python_zip") and not is_windows
402402
if is_windows:
403403
# The legacy build_python_zip codepath isn't compatible with full venvs on Windows.
404404
build_zip_enabled = False

0 commit comments

Comments
 (0)