xref: /aosp_15_r20/external/protobuf/util/python/BUILD.bazel (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1load("@rules_cc//cc:defs.bzl", "cc_library")
2
3exports_files(["BUILD.bazel"])
4
5# This is a placeholder for python headers. Projects needing to use
6# fast cpp protos in protobuf's python interface should build with
7# --define=use_fast_cpp_protos=true, and in addition, provide
8# //external:python_headers dependency that in turn provides Python.h.
9#
10# Projects that include protobuf using a Bazel external repository will need to
11# add a workspace rule to their WORKSPACE files to add an external workspace
12# that includes the Python headers. For example, the protobuf WORKSPACE file
13# includes the following local_repository rule that points to this directory:
14#
15# new_local_repository(
16#   name = "python_headers",
17#   path = __workspace_dir__ + "/util/python",
18# )
19cc_library(
20    name = "python_headers",
21    visibility = ["//visibility:public"],
22)
23