Skip to content

Commit 27de478

Browse files
authored
Merge pull request #457 from NVIDIA/catch_missing_bazel
feat(//py): Catch when bazel is not in path and error out when running
2 parents 34e7b21 + 1cf0e9f commit 27de478

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def is_exe(fpath):
4646

4747
BAZEL_EXE = which("bazel")
4848

49+
if BAZEL_EXE is None:
50+
sys.exit("Could not find bazel in PATH")
51+
4952

5053
def build_libtrtorch_pre_cxx11_abi(develop=True, use_dist_dir=True, cxx11_abi=False):
5154
cmd = [BAZEL_EXE, "build"]

0 commit comments

Comments
 (0)