Repository navigation
Conversation
Signed-off-by: 0z5a <dezhen.lu@student.uni-tuebingen.de>
Signed-off-by: 0z5a <dezhen.lu@student.uni-tuebingen.de>
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix · Severity of issue fixed: Medium Merge Risk:
|
Description
Closes #3369.
In a virtual environment with system site-packages enabled, a CUDA 13 wheel layout in the user site can be selected before a CUDA 12 layout in the venv, despite the venv site having higher priority. The same issue can occur between user and system sites. The existing search loop considers wheel layouts before site roots.
Search site-packages roots first, then each declared wheel layout within a root. Apply the same ordering to dynamic libraries on Linux and Windows, headers, binary utilities, static libraries, and bitcode libraries. The declared preference between layouts within a single root remains unchanged. This addresses a case not covered by #1717's single-layout fix for #1716.
Validation
--parallel-threads=4, all 30 passed in the serial portion of the run.--system-site-packagesvenv with placeholder files, bitcode, static library, header, and binary lookups changed from the user site to the venv site. With two small CPU-only test shared libraries, a freshload_nvidia_dynamic_lib("cudart")process changed from loading the user-site marker 13 to the venv marker 12. These are synthetic test files, not NVIDIA runtimes.Checklist
The issue is not yet assigned; maintainer coordination and review are requested.