Skip to content

Commit

Permalink
Do no longer depend on deprecated bind() target //external:python_hea…
Browse files Browse the repository at this point in the history
…ders
  • Loading branch information
mering committed Dec 29, 2023
1 parent 6e25bb8 commit 4b2a441
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/build_targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}),
)

Expand Down Expand Up @@ -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"],
}),
)

Expand Down Expand Up @@ -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",
],
)

Expand Down
6 changes: 6 additions & 0 deletions third_party/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit 4b2a441

Please sign in to comment.