aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/3.4.0/util/python
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2018-07-09 16:06:26 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2018-07-09 16:06:26 +0200
commit868060b2925a98a22c4a2e760dd38da0bef6146c (patch)
tree8cadd68b0503dae8605144feaa3fba1b20804821 /third_party/protobuf/3.4.0/util/python
parenta2cac548616e6e6f433df27146c2971f352a4041 (diff)
Revert "Update protobuf to 3.6.0. Fixes #5439"
Diffstat (limited to 'third_party/protobuf/3.4.0/util/python')
-rw-r--r--third_party/protobuf/3.4.0/util/python/BUILD26
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/protobuf/3.4.0/util/python/BUILD b/third_party/protobuf/3.4.0/util/python/BUILD
new file mode 100644
index 0000000000..ea9fa641e2
--- /dev/null
+++ b/third_party/protobuf/3.4.0/util/python/BUILD
@@ -0,0 +1,26 @@
+# This is a placeholder for python headers. Projects needing to use
+# fast cpp protos in protobuf's python interface should build with
+# --define=use_fast_cpp_protos=true, and in addition, provide
+# //external:python_headers dependency that in turn provides Python.h.
+#
+# Projects that include protobuf using a Bazel external repository will need to
+# add a workspace rule to their WORKSPACE files to add an external workspace
+# that includes the Python headers. For example, the protobuf WORKSPACE file
+# includes the following local_repository rule that points to this directory:
+#
+# new_local_repository(
+# name = "python",
+# path = __workspace_dir__ + "/util/python",
+# )
+licenses(["notice"])
+
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]),
+ visibility = ["//visibility:public"],
+)
+
+cc_library(
+ name = "python_headers",
+ visibility = ["//visibility:public"],
+)