Convert TensorFlow's ortools dependency to new third party import method.
PiperOrigin-RevId: 218183952
This commit is contained in:
parent
f0d7172a30
commit
5bc359be64
@ -164,17 +164,6 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
|
||||
],
|
||||
)
|
||||
|
||||
tf_http_archive(
|
||||
name = "ortools_archive",
|
||||
build_file = clean_dep("//third_party:ortools.BUILD"),
|
||||
sha256 = "d025a95f78b5fc5eaa4da5f395f23d11c23cf7dbd5069f1f627f002de87b86b9",
|
||||
strip_prefix = "or-tools-6.7.2/src",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/google/or-tools/archive/v6.7.2.tar.gz",
|
||||
"https://github.com/google/or-tools/archive/v6.7.2.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
tf_http_archive(
|
||||
name = "com_googlesource_code_re2",
|
||||
sha256 = "803c7811146edeef8f91064de37c6f19136ff01a2a8cdb3230e940b2fd9f07fe",
|
||||
|
1
third_party/ortools/BUILD
vendored
Normal file
1
third_party/ortools/BUILD
vendored
Normal file
@ -0,0 +1 @@
|
||||
# Dummy BUILD file to make this directory a package.
|
15
third_party/ortools/workspace.bzl
vendored
Normal file
15
third_party/ortools/workspace.bzl
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"""loads the aws library, used by TF."""
|
||||
|
||||
load("//third_party:repo.bzl", "third_party_http_archive")
|
||||
|
||||
def repo():
|
||||
third_party_http_archive(
|
||||
name = "ortools_archive",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/google/or-tools/archive/v6.7.2.tar.gz",
|
||||
"https://github.com/google/or-tools/archive/v6.7.2.tar.gz",
|
||||
],
|
||||
sha256 = "d025a95f78b5fc5eaa4da5f395f23d11c23cf7dbd5069f1f627f002de87b86b9",
|
||||
strip_prefix = "or-tools-6.7.2/src",
|
||||
build_file = "//third_party/ortools:BUILD.bazel",
|
||||
)
|
Loading…
Reference in New Issue
Block a user