Commit 965c483
committed
Recognize onnxruntime-windowsml in onnxruntime version detection
When users install the Windows ML onnxruntime variant
(`pip install onnxruntime-windowsml`), `find_spec("onnxruntime")` still
resolves successfully, but none of the package names in the
metadata-lookup fallback match, so `importlib_metadata.version(pkg)`
fails for every candidate and `_onnx_available` ends up False (see #13062).
Add `onnxruntime-windowsml` to the candidate list alongside the other
vendor-specific wheels (DirectML, CANN, OpenVINO, …) so installations
that ship only this variant are detected.
Fixes #130621 parent c8c8401 commit 965c483
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
0 commit comments