* Fix UnboundLocalError in _detect_rocm_version dpkg/rpm fallback A leftover local import re inside the amd-smi branch made re function local for the whole scope. When amd-smi and hipconfig are absent and dpkg-query or rpm reports rocm-core, the epoch strip at the dpkg/rpm fallback hit re.sub before any local binding existed and crashed the installer with UnboundLocalError. Drop the local import (the module already imports re at top level) and add a regression test covering the dpkg path without hipconfig. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| smoke_test_llama_prebuilt.py | ||
| smoke_test_parallel_studio_home.py | ||
| test_install_llama_prebuilt_logic.py | ||
| test_llama_pr_force_and_source.py | ||
| test_macos_version_compat.py | ||
| test_pr4562_bugfixes.py | ||
| test_pr5940_followups.py | ||
| test_rocm_support.py | ||
| test_selection_logic.py | ||