From d375c22d78120c951218fbf674d5df590ae0a372 Mon Sep 17 00:00:00 2001 From: atalman Date: Wed, 17 Jun 2026 14:57:58 -0700 Subject: [PATCH] Drop Windows libtorch debug from quick-start generation Windows libtorch debug binaries are no longer produced (pytorch/test-infra#8194 stops generating them in the build matrix). Update the Windows libtorch branch of gen_quick_start_module.py to only publish the Release download and drop any stale Debug entry carried over from the preview template, so regenerating published_versions.json for 2.12.1 and nightlies no longer references the dropped debug binaries (and no longer KeyErrors on the missing debug matrix entry). Historical released versions keep their existing Debug links. --- scripts/gen_quick_start_module.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/gen_quick_start_module.py b/scripts/gen_quick_start_module.py index 5fd20d79949f..7654c59ecdf4 100755 --- a/scripts/gen_quick_start_module.py +++ b/scripts/gen_quick_start_module.py @@ -173,10 +173,15 @@ def update_versions(versions, release_matrix, release_version): for x in pkg_arch_matrix } if instr["versions"] is not None: - for ver in [RELEASE, DEBUG]: - instr["versions"][LIBTORCH_DWNL_INSTR[ver]] = ( - rel_entry_dict[ver] - ) + # Windows libtorch debug builds are no longer produced, so + # only publish the release download and drop any stale + # debug entry carried over from previous versions. + instr["versions"][LIBTORCH_DWNL_INSTR[RELEASE]] = ( + rel_entry_dict[RELEASE] + ) + instr["versions"].pop( + LIBTORCH_DWNL_INSTR[DEBUG], None + ) elif os_key == OperatingSystem.MACOS.value: if instr["versions"] is not None: instr["versions"][LIBTORCH_DWNL_INSTR[MACOS]] = (