Update six.BUILD

pull/6818/head
Yannic 5 years ago committed by Adam Cozzette
parent e907a8781d
commit 3581ee24e9
  1. 13
      third_party/six.BUILD

@ -1,8 +1,19 @@
load("@rules_python//python:defs.bzl", "py_library")
# Consume `six.py` as `__init__.py` for compatibility
# with `--incompatible_default_to_explicit_init_py`.
# https://github.com/protocolbuffers/protobuf/pull/6795#issuecomment-546060749
# https://github.com/bazelbuild/bazel/issues/10076
genrule(
name = "copy_six",
srcs = ["six-1.12.0/six.py"],
outs = ["__init__.py"],
cmd = "cp $< $(@)",
)
py_library(
name = "six",
srcs = ["six.py"],
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)

Loading…
Cancel
Save