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