From 8145595a3577fd5d7f54d8edc9b7abbf9a105366 Mon Sep 17 00:00:00 2001 From: Amit Patankar Date: Wed, 19 Aug 2020 14:49:02 -0700 Subject: [PATCH] Convert tensorflow/c:pywrap_required_headers from a filegroup to textual headers cc_library target. PiperOrigin-RevId: 327511112 Change-Id: I22edce440f1f1a3c45512265f4412c4828251ba4 --- tensorflow/c/BUILD | 4 ++-- tensorflow/python/BUILD | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tensorflow/c/BUILD b/tensorflow/c/BUILD index 0b3aff72062..9d8032aca52 100644 --- a/tensorflow/c/BUILD +++ b/tensorflow/c/BUILD @@ -58,9 +58,9 @@ filegroup( visibility = ["//visibility:public"], ) -filegroup( +cc_library( name = "pywrap_required_hdrs", - srcs = [ + textual_hdrs = [ "c_api_internal.h", "c_api_macros.h", "conversion_macros.h", diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index ac58ae56059..b1ca6bc539a 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -679,7 +679,6 @@ tf_python_pybind_extension( "lib/core/numpy.h", "lib/core/safe_ptr.h", "//tensorflow/c:headers", - "//tensorflow/c:pywrap_required_hdrs", "//tensorflow/c/eager:headers", "//tensorflow/c/eager:pywrap_required_hdrs", "//tensorflow/core/common_runtime/eager:pywrap_required_hdrs", @@ -692,6 +691,7 @@ tf_python_pybind_extension( ":pybind11_lib", ":pybind11_status", "//third_party/py/numpy:headers", + "//tensorflow/c:pywrap_required_hdrs", "@pybind11", "//third_party/python_runtime:headers", "//tensorflow/core:protos_all_cc", @@ -1022,7 +1022,6 @@ cc_library( "lib/core/numpy.h", "lib/core/safe_ptr.h", "//tensorflow/c:headers", - "//tensorflow/c:pywrap_required_hdrs", "//tensorflow/c/eager:headers", ], features = [ @@ -1033,6 +1032,7 @@ cc_library( ]), deps = [ ":numpy_lib", + "//tensorflow/c:pywrap_required_hdrs", "//tensorflow/c:tf_status_headers", "//tensorflow/core:framework_internal_headers_lib", "//tensorflow/core/common_runtime:core_cpu_headers_lib", @@ -8344,7 +8344,6 @@ tf_python_pybind_extension( "util/util.h", ":py_exception_registry_hdr", "//tensorflow/c:headers", - "//tensorflow/c:pywrap_required_hdrs", "//tensorflow/c/eager:headers", "//tensorflow/c/eager:pywrap_required_hdrs", "//tensorflow/core/common_runtime/eager:pywrap_required_hdrs", @@ -8362,6 +8361,7 @@ tf_python_pybind_extension( "@com_google_absl//absl/memory", "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", + "//tensorflow/c:pywrap_required_hdrs", "@pybind11", "//third_party/python_runtime:headers", "//tensorflow/c/experimental/saved_model/core:pywrap_required_hdrs",