Skip to content

Commit 08ffffe

Browse files
authored
fix: update build.py conditions (#8560)
1 parent 77577e6 commit 08ffffe

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

build.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def onnxruntime_cmake_args(images, library_paths):
711711
"onnxruntime",
712712
"TRITON_BUILD_CONTAINER_VERSION",
713713
None,
714-
FLAGS.triton_container_version,
714+
FLAGS.upstream_container_version,
715715
)
716716
)
717717

@@ -2880,12 +2880,11 @@ def enable_all():
28802880
# backends, repo-agents, and caches if a repo-tag is not given
28812881
# explicitly. For release branches we use the release branch as
28822882
# the default, otherwise we use 'main'.
2883-
default_repo_tag = "main"
2884-
cver = FLAGS.upstream_container_version
2885-
if cver is None:
2886-
cver = FLAGS.triton_container_version
2887-
if not cver.endswith("dev"):
2888-
default_repo_tag = "r" + cver
2883+
default_repo_tag = (
2884+
"main"
2885+
if FLAGS.triton_container_version.endswith("dev")
2886+
else "r" + FLAGS.triton_container_version
2887+
)
28892888
log("default repo-tag: {}".format(default_repo_tag))
28902889

28912890
# For other versions use the TRITON_VERSION_MAP unless explicitly

0 commit comments

Comments
 (0)