Skip to content

Commit 1da999d

Browse files
committed
feat(//py): Catch when bazel is not in path and error out when running
setup.py Signed-off-by: Naren Dasan <naren@narendasan.com> Signed-off-by: Naren Dasan <narens@nvidia.com>
1 parent 1fb31bc commit 1da999d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ 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")
4951

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

0 commit comments

Comments
 (0)