Repositories depending on TensorFlow should use the content of the WORKSPACE file to initialize TensorFlow and its dependencies. This will make it much less likely for us to break dependent projects when we add/change TensorFlow's dependencies. PiperOrigin-RevId: 345391447 Change-Id: Ia5f66a341247d0da491e40aee39f460ac10d5c9b
17 lines
606 B
Python
17 lines
606 B
Python
"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
|
|
|
|
load("//third_party/android:android_configure.bzl", "android_configure")
|
|
load("//third_party/toolchains/preconfig/generate:archives.bzl", "bazel_toolchains_archive")
|
|
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
|
|
load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
|
|
|
|
def workspace():
|
|
native.register_toolchains("@local_config_python//:py_toolchain")
|
|
|
|
closure_repositories()
|
|
bazel_toolchains_archive()
|
|
|
|
android_configure(name = "local_config_android")
|
|
|
|
grpc_deps()
|