Skip to content

Commit ffedb78

Browse files
author
Wei
authored
fx only do not need to check bazel (#1147)
1 parent 1a22204 commit ffedb78

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

py/setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ def is_exe(fpath):
7474

7575
return None
7676

77+
BAZEL_EXE = None
78+
if not FX_ONLY:
79+
BAZEL_EXE = which("bazelisk")
7780

78-
BAZEL_EXE = which("bazelisk")
79-
80-
if BAZEL_EXE is None:
81-
BAZEL_EXE = which("bazel")
8281
if BAZEL_EXE is None:
83-
sys.exit("Could not find bazel in PATH")
82+
BAZEL_EXE = which("bazel")
83+
if BAZEL_EXE is None:
84+
sys.exit("Could not find bazel in PATH")
8485

8586

8687
def build_libtorchtrt_pre_cxx11_abi(develop=True, use_dist_dir=True, cxx11_abi=False):

0 commit comments

Comments
 (0)