From 4b2a441bd80ca32dc2fd78cf55608d9c6b3879de Mon Sep 17 00:00:00 2001 From: maleo Date: Fri, 29 Dec 2023 20:04:56 +0000 Subject: [PATCH] Do no longer depend on deprecated bind() target //external:python_headers --- python/build_targets.bzl | 6 +++--- third_party/BUILD.bazel | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python/build_targets.bzl b/python/build_targets.bzl index 05ed1637cefb5..51468bf634583 100644 --- a/python/build_targets.bzl +++ b/python/build_targets.bzl @@ -85,7 +85,7 @@ def build_targets(name): ], deps = select({ "//conditions:default": [], - ":use_fast_cpp_protos": ["//external:python_headers"], + ":use_fast_cpp_protos": ["//third_party:python_headers"], }), ) @@ -123,7 +123,7 @@ def build_targets(name): "//:protobuf", ] + select({ "//conditions:default": [], - ":use_fast_cpp_protos": ["//external:python_headers"], + ":use_fast_cpp_protos": ["//third_party:python_headers"], }), ) @@ -387,7 +387,7 @@ def build_targets(name): hdrs = ["google/protobuf/proto_api.h"], visibility = ["//visibility:public"], deps = [ - "//external:python_headers", + "//third_party:python_headers", ], ) diff --git a/third_party/BUILD.bazel b/third_party/BUILD.bazel index 35da5c30f83f9..652f9dea3a307 100644 --- a/third_party/BUILD.bazel +++ b/third_party/BUILD.bazel @@ -3,3 +3,9 @@ exports_files([ "rules_fuzzing.patch", "zlib.BUILD", ]) + +alias( + name = "python_headers", + actual = "@rules_python//python/cc:current_py_cc_headers", + visibility = ["//visibility:public"], +)