Skip to content

Commit ffd753f

Browse files
authored
Add temporary alias for system_python.bzl at previous location . (#16787)
* 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 * Add upb/bazel/system_python.bzl (new alias file) to upb copybara config. PiperOrigin-RevId: 631918306
1 parent 5fea2f6 commit ffd753f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

bazel/system_python.bzl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2009-2021, Google LLC
2+
# All rights reserved.
3+
#
4+
# Use of this source code is governed by a BSD-style
5+
# license that can be found in the LICENSE file or at
6+
# https://developers.google.com/open-source/licenses/bsd
7+
8+
"""Temporary alias to repository rule for using Python 3.x headers from the system."""
9+
10+
load(
11+
"//python/dist:system_python.bzl",
12+
_system_python = "system_python",
13+
)
14+
15+
# TODO: Temporary alias. This is deprecated and to be removed in a future
16+
# release. Users should now get system_python from protobuf_deps.bzl.
17+
system_python = _system_python

0 commit comments

Comments
 (0)