From 36108099b7b26bc408c33039cf444b9badcdde04 Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Wed, 8 May 2024 09:11:03 -0700 Subject: [PATCH 1/2] Add temporary alias for system_python.bzl at previous location . This was added to protobuf_deps.bzl in cl/629786458 and no longer needs to be specified directly in WORKSPACE. However, an alias is needed to prevent users from breaking when upgrading from 26.x -> 27.x due to the obsolete load pointing to the wrong path. This alias will be removed in a future release, tentatively 4.30.x. PiperOrigin-RevId: 631821637 --- google3/third_party/upb/bazel/system_python.bzl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 google3/third_party/upb/bazel/system_python.bzl diff --git a/google3/third_party/upb/bazel/system_python.bzl b/google3/third_party/upb/bazel/system_python.bzl new file mode 100644 index 0000000000000..5126b9bce0f46 --- /dev/null +++ b/google3/third_party/upb/bazel/system_python.bzl @@ -0,0 +1,17 @@ +# Copyright (c) 2009-2021, Google LLC +# All rights reserved. +# +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file or at +# https://developers.google.com/open-source/licenses/bsd + +"""Temporary alias to repository rule for using Python 3.x headers from the system.""" + +load( + "//python/dist:system_python.bzl", + _system_python = "system_python", +) + +# TODO: Temporary alias. This is deprecated and to be removed in a future +# release. Users should now get system_python from protobuf_deps.bzl. +system_python = _system_python From 9a34edd4cdbc9eaa0d3acc114620f15063b3f732 Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Wed, 8 May 2024 14:04:01 -0700 Subject: [PATCH 2/2] Add upb/bazel/system_python.bzl (new alias file) to upb copybara config. PiperOrigin-RevId: 631918306 --- {google3/third_party/upb/bazel => bazel}/system_python.bzl | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {google3/third_party/upb/bazel => bazel}/system_python.bzl (100%) diff --git a/google3/third_party/upb/bazel/system_python.bzl b/bazel/system_python.bzl similarity index 100% rename from google3/third_party/upb/bazel/system_python.bzl rename to bazel/system_python.bzl