[bazel] Add `strip_prefix` to download of @six
This way, we can avoid an unnecessary copy.pull/6818/head
parent
342a2d627c
commit
29d650aefb
2 changed files with 6 additions and 10 deletions
@ -1,13 +1,8 @@ |
|||||||
genrule( |
load("@rules_python//python:defs.bzl", "py_library") |
||||||
name = "copy_six", |
|
||||||
srcs = ["six-1.12.0/six.py"], |
|
||||||
outs = ["__init__.py"], |
|
||||||
cmd = "cp $< $(@)", |
|
||||||
) |
|
||||||
|
|
||||||
py_library( |
py_library( |
||||||
name = "six", |
name = "six", |
||||||
srcs = ["__init__.py"], |
srcs = ["six.py"], |
||||||
srcs_version = "PY2AND3", |
srcs_version = "PY2AND3", |
||||||
visibility = ["//visibility:public"], |
visibility = ["//visibility:public"], |
||||||
) |
) |
||||||
|
Loading…
Reference in new issue