aboutsummaryrefslogtreecommitdiff
path: root/util/python/BUILD
diff options
context:
space:
mode:
authorJisi Liu <liujisi@google.com>2016-02-25 13:02:55 -0800
committerJisi Liu <liujisi@google.com>2016-02-25 13:02:55 -0800
commit60a0d41a2988a40cf3a94a4cb602f5f1c94135e9 (patch)
tree5e10472534937e070a19be7ab2b5cd94ed976b46 /util/python/BUILD
parentfb714b3606bd663b823f6960a73d052f97283b74 (diff)
parent985c968443e5124327fb600a91856192df4476ac (diff)
downloadprotobuf-60a0d41a2988a40cf3a94a4cb602f5f1c94135e9.tar.gz
protobuf-60a0d41a2988a40cf3a94a4cb602f5f1c94135e9.tar.bz2
protobuf-60a0d41a2988a40cf3a94a4cb602f5f1c94135e9.zip
Merge pull request #1233 from davidzchen/python-path
Remove hack for building Python support with Bazel.
Diffstat (limited to 'util/python/BUILD')
-rw-r--r--util/python/BUILD12
1 files changed, 11 insertions, 1 deletions
diff --git a/util/python/BUILD b/util/python/BUILD
index 358c381c..3ac03856 100644
--- a/util/python/BUILD
+++ b/util/python/BUILD
@@ -1,7 +1,17 @@
# 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
-# //util/python:python_headers dependency that in turn provides Python.h.
+# //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",
+# )
cc_library(
name = "python_headers",
visibility = ["//visibility:public"],