Explicitly drop support for python on Windows.

This was already broken, but wasn't caught in tests because `python3` wasn't defined on our windows machines.  To prevent it from breaking the entire downstream Bazel workspace when `python3` exists, we mark it unsupported.

PiperOrigin-RevId: 506318286
pull/13171/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent f8a3e0d684
commit 008a9afd3a
  1. 4
      bazel/system_python.bzl

@ -195,6 +195,10 @@ def _populate_package(ctx, path, python3, python_version):
if int(python_version[idx]) < int(v):
supported = False
break
if "win" in ctx.os.name:
# buildifier: disable=print
print("WARNING: python is not supported on Windows")
supported = False
build_file = _build_file.format(
interpreter = python3,

Loading…
Cancel
Save