From 53c7c66b9afe42b3180bc6a9bbdeac2d92e12d1d Mon Sep 17 00:00:00 2001
From: Jason Zaman <jason@perfinion.com>
Date: Wed, 30 May 2018 21:40:45 +0800
Subject: [PATCH] third_party: Add astor systemlib

Signed-off-by: Jason Zaman <jason@perfinion.com>
---
 tensorflow/workspace.bzl           |  1 +
 third_party/systemlibs/astor.BUILD | 12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 third_party/systemlibs/astor.BUILD

diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 4b8652b93c9..ca2fcefdac1 100644
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -300,6 +300,7 @@ def tf_workspace(path_prefix="", tf_repo_name=""):
       sha256 = "ff6d2e2962d834acb125cc4dcc80c54a8c17c253f4cc9d9c43b5102a560bb75d",
       strip_prefix = "astor-0.6.2",
       build_file = clean_dep("//third_party:astor.BUILD"),
+      system_build_file = clean_dep("//third_party/systemlibs:astor.BUILD"),
   )
 
   tf_http_archive(
diff --git a/third_party/systemlibs/astor.BUILD b/third_party/systemlibs/astor.BUILD
new file mode 100644
index 00000000000..497ec4bcea9
--- /dev/null
+++ b/third_party/systemlibs/astor.BUILD
@@ -0,0 +1,12 @@
+licenses(["notice"])  # New BSD
+
+filegroup(
+    name = "LICENSE",
+    visibility = ["//visibility:public"],
+)
+
+py_library(
+    name = "astor",
+    srcs_version = "PY2AND3",
+    visibility = ["//visibility:public"],
+)