diff options
author | Justine Tunney <jart@google.com> | 2017-06-14 19:08:34 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-14 19:12:58 -0700 |
commit | 4ac7cc54c81984e38da7a17992a56f62560e2870 (patch) | |
tree | d8bd0ca426bae9ebeac323f9b9146c0b41c844a5 /third_party/backports_weakref.BUILD | |
parent | 7d3497a639670d9c31d09185ff97b852f0fbe101 (diff) |
Add backports.weakref to Bazel build
This way people using Bazel don't have to pip install it.
PiperOrigin-RevId: 159057260
Diffstat (limited to 'third_party/backports_weakref.BUILD')
-rw-r--r-- | third_party/backports_weakref.BUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/backports_weakref.BUILD b/third_party/backports_weakref.BUILD new file mode 100644 index 0000000000..0adfc5f054 --- /dev/null +++ b/third_party/backports_weakref.BUILD @@ -0,0 +1,22 @@ +# Description: +# Backport of new features in Python's weakref module. + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) # Python 2.0 + +py_library( + name = "org_python_pypi_backports_weakref", + srcs = [ + "backports/__init__.py", + "backports/weakref.py", + ], + srcs_version = "PY2AND3", +) + +genrule( + name = "license", + srcs = ["@org_python_license"], + outs = ["LICENSE"], + cmd = "cp $< $@", +) |