aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2015-10-22 13:44:15 -0700
committerGravatar Jisi Liu <jisi.liu@gmail.com>2015-10-22 13:44:15 -0700
commitb657cb4b918306a7a1492f3764b63a4aaea4162a (patch)
tree6d58463b102dbcd9005191bcc5dc771000949fd7
parentfbc51b70181d80bc1dc45230495ca896d54f5193 (diff)
fix six package path.
--strip_prefix doesn't seem to work.
-rw-r--r--WORKSPACE1
-rw-r--r--six.BUILD9
2 files changed, 8 insertions, 2 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 42d9328a..c3f18cc7 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -10,7 +10,6 @@ new_http_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(
diff --git a/six.BUILD b/six.BUILD
index a259232d..55c53a42 100644
--- a/six.BUILD
+++ b/six.BUILD
@@ -1,5 +1,12 @@
+genrule(
+ name = "copy_six",
+ srcs = ["six-1.10.0/six.py"],
+ outs = ["six.py"],
+ cmd = "cp $< $(@)",
+)
+
py_library(
name = "six",
- srcs = ["six-1.10.0/six.py"],
+ srcs = ["six.py"],
visibility = ["//visibility:public"],
)