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
14 lines
575 B
Python
14 lines
575 B
Python
"""TensorFlow workspace initialization. Consult the WORKSPACE on how to use it."""
|
|
|
|
load("//tensorflow:version_check.bzl", "check_bazel_version_at_least")
|
|
load("//tensorflow:workspace.bzl", "tf_repositories")
|
|
|
|
def workspace():
|
|
# Check the bazel version before executing any repository rules, in case
|
|
# those rules rely on the version we require here.
|
|
check_bazel_version_at_least("1.0.0")
|
|
|
|
# Load tf_repositories() before loading dependencies for other repository so
|
|
# that dependencies like com_google_protobuf won't be overridden.
|
|
tf_repositories()
|