瀏覽代碼

Add six as an external dep.

Jisi Liu 10 年之前
父節點
當前提交
fbc51b7018
共有 3 個文件被更改,包括 19 次插入0 次删除
  1. 1 0
      BUILD
  2. 13 0
      WORKSPACE
  3. 5 0
      six.BUILD

+ 1 - 0
BUILD

@@ -510,6 +510,7 @@ py_proto_library(
     include = "src",
     include = "src",
     protoc = ":protoc",
     protoc = ":protoc",
     py_extra_srcs = [":python_srcs"],
     py_extra_srcs = [":python_srcs"],
+    py_libs = ["//external:six"],
     visibility = ["//visibility:public"],
     visibility = ["//visibility:public"],
 )
 )
 
 

+ 13 - 0
WORKSPACE

@@ -5,6 +5,14 @@ new_http_archive(
   build_file = "gmock.BUILD",
   build_file = "gmock.BUILD",
 )
 )
 
 
+new_http_archive(
+  name = "six_archive",
+  url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
+  sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
+  build_file = "six.BUILD",
+  strip_prefix = "six-1.10.0",
+)
+
 bind(
 bind(
   name = "gtest",
   name = "gtest",
   actual = "@gmock_archive//:gtest",
   actual = "@gmock_archive//:gtest",
@@ -14,3 +22,8 @@ bind(
   name = "gtest_main",
   name = "gtest_main",
   actual = "@gmock_archive//:gtest_main",
   actual = "@gmock_archive//:gtest_main",
 )
 )
+
+bind(
+  name = "six",
+  actual = "@six_archive//:six",
+)

+ 5 - 0
six.BUILD

@@ -0,0 +1,5 @@
+py_library(
+  name = "six",
+  srcs = ["six-1.10.0/six.py"],
+  visibility = ["//visibility:public"],
+)