Skip to content

Commit aaeedc3

Browse files
committed
chore: update bazel dependencies
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent cae6b7c commit aaeedc3

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.2.0
1+
6.2.1

WORKSPACE

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
11
workspace(name = "Torch-TensorRT")
22

3-
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
43
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
54

65
http_archive(
76
name = "rules_python",
8-
sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f",
9-
url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz",
7+
sha256 = "863ba0fa944319f7e3d695711427d9ad80ba92c6edd0b7c7443b84e904689539",
8+
strip_prefix = "rules_python-0.22.0",
9+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.22.0/rules_python-0.22.0.tar.gz",
1010
)
1111

12-
load("@rules_python//python:pip.bzl", "pip_install")
12+
load("@rules_python//python:repositories.bzl", "py_repositories")
13+
14+
py_repositories()
1315

1416
http_archive(
1517
name = "rules_pkg",
16-
sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
18+
sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8",
1719
urls = [
18-
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
19-
"https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
20+
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
21+
"https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
2022
],
2123
)
2224

2325
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
2426

2527
rules_pkg_dependencies()
2628

27-
git_repository(
29+
http_archive(
2830
name = "googletest",
29-
commit = "703bd9caab50b139428cea1aaff9974ebee5742e",
30-
remote = "https://github.com/google/googletest",
31-
shallow_since = "1570114335 -0400",
31+
sha256 = "755f9a39bc7205f5a0c428e920ddad092c33c8a1b46997def3f1d4a82aded6e1",
32+
strip_prefix = "googletest-5ab508a01f9eb089207ee87fd547d290da39d015",
33+
urls = ["https://github.com/google/googletest/archive/5ab508a01f9eb089207ee87fd547d290da39d015.zip"],
3234
)
3335

3436
# External dependency for torch_tensorrt if you already have precompiled binaries.
@@ -71,7 +73,7 @@ http_archive(
7173
http_archive(
7274
name = "cudnn",
7375
build_file = "@//third_party/cudnn/archive:BUILD",
74-
sha256 = "36fff137153ef73e6ee10bfb07f4381240a86fb9fb78ce372414b528cbab2293",
76+
sha256 = "62046476076d1b455fb13fb78b38d3496bacafbfdbb0494fb3392240a04466ea",
7577
strip_prefix = "cudnn-linux-x86_64-8.8.0.121_cuda11-archive",
7678
urls = [
7779
"https://developer.download.nvidia.com/compute/cudnn/secure/8.8.0/local_installers/11.8/cudnn-linux-x86_64-8.8.0.121_cuda11-archive.tar.xz",
@@ -127,7 +129,13 @@ http_archive(
127129
# Development Dependencies (optional - comment out on aarch64)
128130
#########################################################################
129131

130-
pip_install(
132+
load("@rules_python//python:pip.bzl", "pip_parse")
133+
134+
pip_parse(
131135
name = "devtools_deps",
132136
requirements = "//:requirements-dev.txt",
133137
)
138+
139+
load("@devtools_deps//:requirements.bzl", "install_deps")
140+
141+
install_deps()

0 commit comments

Comments
 (0)