Commit 3581ee24 authored by Yannic's avatar Yannic Committed by Adam Cozzette

Update six.BUILD

parent e907a878
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_version = "PY2AND3",
visibility = ["//visibility:public"],
name = "six",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment