Commit a5121a9
rocm: fix pip-wheel detection across Python versions in install_rocjpeg.sh
importlib.util.find_spec only searches the current Python's sys.path.
When the script runs inside a conda env (Python 3.10) but _rocm_sdk_devel
is installed for the system Python (3.11), find_spec returns None and the
skip check falls through to dnf install, which fails on ROCm 7.14.
Add a glob fallback over /*/lib/python*/site-packages/ that finds
_rocm_sdk_* regardless of which Python version it was installed for.
The pattern is not conda-specific and works for any standard prefix.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 909d84b commit a5121a9
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | | - | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
0 commit comments