From e0d2a39de7fd505d66006f8b66be4e11ab56a975 Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Wed, 29 May 2019 19:27:11 +0800 Subject: [PATCH] systemlibs: unbundle enum34 Signed-off-by: Jason Zaman --- tensorflow/workspace.bzl | 1 + third_party/systemlibs/enum34.BUILD | 14 ++++++++++++++ third_party/systemlibs/syslibs_configure.bzl | 1 + 3 files changed, 16 insertions(+) create mode 100644 third_party/systemlibs/enum34.BUILD diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index 27e8ad9809d..60dc546462c 100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -389,6 +389,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""): ], sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1", build_file = clean_dep("//third_party:enum34.BUILD"), + system_build_file = clean_dep("//third_party/systemlibs:enum34.BUILD"), strip_prefix = "enum34-1.1.6/enum", ) diff --git a/third_party/systemlibs/enum34.BUILD b/third_party/systemlibs/enum34.BUILD new file mode 100644 index 00000000000..de14bd5641c --- /dev/null +++ b/third_party/systemlibs/enum34.BUILD @@ -0,0 +1,14 @@ +# Description: +# enum34 provides a backport of the enum module for Python 2. + +licenses(["notice"]) # MIT + +filegroup( + name = "LICENSE", + visibility = ["//visibility:public"], +) + +py_library( + name = "enum", + visibility = ["//visibility:public"], +) diff --git a/third_party/systemlibs/syslibs_configure.bzl b/third_party/systemlibs/syslibs_configure.bzl index 8c411a79f6a..f83c0dd3d5f 100644 --- a/third_party/systemlibs/syslibs_configure.bzl +++ b/third_party/systemlibs/syslibs_configure.bzl @@ -20,6 +20,7 @@ VALID_LIBS = [ "curl", "cython", "double_conversion", + "enum34_archive", "flatbuffers", "gast_archive", "gif_archive",