aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/workspace.bzl
diff options
context:
space:
mode:
authorGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-27 16:03:35 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-27 16:03:43 -0700
commit3455a9c6dd79c4030f8c1cf06316fffe1795577e (patch)
tree528439e756cc06525729f7afed234ae3fd7f0970 /tensorflow/workspace.bzl
parent4e36393006f8462a3ef516a6ca3010542213f352 (diff)
parent6f469061b8f52b4d6b9c9b47d46f97f135df01b0 (diff)
Merge pull request #21202 from bstriner:py37
PiperOrigin-RevId: 210447509
Diffstat (limited to 'tensorflow/workspace.bzl')
-rwxr-xr-x[-rw-r--r--]tensorflow/workspace.bzl34
1 files changed, 16 insertions, 18 deletions
diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
index 132f42000a..c1b38d920e 100644..100755
--- a/tensorflow/workspace.bzl
+++ b/tensorflow/workspace.bzl
@@ -365,14 +365,18 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
},
)
+ PROTOBUF_URLS = [
+ "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz",
+ "https://github.com/google/protobuf/archive/v3.6.0.tar.gz",
+ ]
+ PROTOBUF_SHA256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4"
+ PROTOBUF_STRIP_PREFIX = "protobuf-3.6.0"
+
tf_http_archive(
name = "protobuf_archive",
- urls = [
- "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz",
- "https://github.com/google/protobuf/archive/v3.6.0.tar.gz",
- ],
- sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4",
- strip_prefix = "protobuf-3.6.0",
+ urls = PROTOBUF_URLS,
+ sha256 = PROTOBUF_SHA256,
+ strip_prefix = PROTOBUF_STRIP_PREFIX,
)
# We need to import the protobuf library under the names com_google_protobuf
@@ -380,22 +384,16 @@ def tf_workspace(path_prefix = "", tf_repo_name = ""):
# Unfortunately there is no way to alias http_archives at the moment.
tf_http_archive(
name = "com_google_protobuf",
- urls = [
- "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz",
- "https://github.com/google/protobuf/archive/v3.6.0.tar.gz",
- ],
- sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4",
- strip_prefix = "protobuf-3.6.0",
+ urls = PROTOBUF_URLS,
+ sha256 = PROTOBUF_SHA256,
+ strip_prefix = PROTOBUF_STRIP_PREFIX,
)
tf_http_archive(
name = "com_google_protobuf_cc",
- urls = [
- "https://mirror.bazel.build/github.com/google/protobuf/archive/v3.6.0.tar.gz",
- "https://github.com/google/protobuf/archive/v3.6.0.tar.gz",
- ],
- sha256 = "50a5753995b3142627ac55cfd496cebc418a2e575ca0236e29033c67bd5665f4",
- strip_prefix = "protobuf-3.6.0",
+ urls = PROTOBUF_URLS,
+ sha256 = PROTOBUF_SHA256,
+ strip_prefix = PROTOBUF_STRIP_PREFIX,
)
tf_http_archive(