diff options
author | Michael Case <mikecase@google.com> | 2018-06-01 12:58:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 12:58:16 -0700 |
commit | 744cf3d3e06fb63ffa40086766137daedc01a5ba (patch) | |
tree | ad87aeeaae9cce01bfdf017b6650aea23f9a2817 /tensorflow/BUILD | |
parent | eebb9e0449b38703869ae7ccd0aa2c649f9f5aaf (diff) | |
parent | 8f79ab773fe44e4779138a77a3bda4b18245d658 (diff) |
Merge pull request #19680 from case540/branch_198811639
Branch 198811639
Diffstat (limited to 'tensorflow/BUILD')
-rw-r--r-- | tensorflow/BUILD | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tensorflow/BUILD b/tensorflow/BUILD index f4351f9dce..9b07669a5d 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -19,6 +19,10 @@ load( "//tensorflow/core:platform/default/build_config.bzl", "tf_additional_binary_deps", ) +load( + "//tensorflow/tools/api/generator:api_gen.bzl", + "gen_api_init_files", # @unused +) # Config setting for determining if we are building for Android. config_setting( @@ -534,13 +538,16 @@ exports_files( ], ) +gen_api_init_files( + name = "python_api_gen", + srcs = ["api_template.__init__.py"], + root_init_template = "api_template.__init__.py", +) + py_library( name = "tensorflow_py", - srcs = ["__init__.py"], + srcs = [":python_api_gen"], srcs_version = "PY2AND3", visibility = ["//visibility:public"], - deps = [ - "//tensorflow/python", - "//tensorflow/tools/api/generator:python_api", - ], + deps = ["//tensorflow/python"], ) |