From 4ddfaa27532f01982fc05d21ef0cd3c3c02910ad Mon Sep 17 00:00:00 2001 From: archdex-art Date: Tue, 14 Jul 2026 20:18:28 +0530 Subject: [PATCH] fix(cookbook): remove dead IS_WINDOWS import in _pip_install_fallback_chain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit IS_WINDOWS is imported at the top of _pip_install_fallback_chain but never referenced in the function body — dead code left over from an earlier version of the fallback chain. Fixes #5512 --- routes/cookbook_helpers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/routes/cookbook_helpers.py b/routes/cookbook_helpers.py index a4e29853b4..64502b185b 100644 --- a/routes/cookbook_helpers.py +++ b/routes/cookbook_helpers.py @@ -238,7 +238,6 @@ def _pip_install_fallback_chain(package: str, *, python_cmd: str = "python3 -m p exit code is preserved (no ``| tail`` masking) and the last 5 lines of pip output appear in the Cookbook log on failure. """ - from core.platform_compat import IS_WINDOWS upgrade_flag = " -U" if upgrade else "" # Shell-quote the package spec: an extras spec like ``llama-cpp-python[server]`` # contains brackets that bash would treat as a glob, so it must be quoted