Ship TF Eager header with libtensorflow tarballs. (#17230)
authorNick Kreeger <nick.kreeger@gmail.com>
Sat, 24 Feb 2018 19:19:21 +0000 (11:19 -0800)
committerShanqing Cai <cais@google.com>
Sat, 24 Feb 2018 19:19:21 +0000 (14:19 -0500)
* Ship TF Eager header with libtensorflow tarballs.

tensorflow/tools/lib_package/BUILD

index 614457e..3fbdb5c 100644 (file)
@@ -27,6 +27,7 @@ pkg_tar(
         ":cheaders",
         ":clib",
         ":clicenses",
+        ":eager_cheaders",
     ],
 )
 
@@ -57,7 +58,6 @@ pkg_tar(
     name = "cheaders",
     files = [
         "//tensorflow/c:headers",
-        "//tensorflow/c/eager:headers",
     ],
     package_dir = "include/tensorflow/c",
     # Mark as "manual" till
@@ -69,6 +69,20 @@ pkg_tar(
 )
 
 pkg_tar(
+    name = "eager_cheaders",
+    files = [
+        "//tensorflow/c/eager:headers",
+    ],
+    package_dir = "include/tensorflow/c/eager",
+    # Mark as "manual" till
+    # https://github.com/bazelbuild/bazel/issues/2352
+    # and https://github.com/bazelbuild/bazel/issues/1580
+    # are resolved, otherwise these rules break when built
+    # with Python 3.
+    tags = ["manual"],
+)
+
+pkg_tar(
     name = "clib",
     files = ["//tensorflow:libtensorflow.so"],
     package_dir = "lib",