mshr-h opened a new pull request, #19987:
URL: https://github.com/apache/tvm/pull/19987
#19656 changed the scikit-build build directory from `build`
to`build/{wheel_tag}`.
That change moved editable-build libraries from `build/lib` to paths such as
`build/py3-none-macosx_15_0_arm64/lib`. However,
`tvm.libinfo.package_lib_paths()` continued to search only `build/lib`. As a
result, `import tvm` could not find `libtvm_runtime` after an editable
build:
```text
RuntimeError: Cannot find library libtvm_runtime.dylib, libtvm_runtime.so
```
This PR adds `build/*/lib` to the library search paths. It preserves the
existing priority of `TVM_LIBRARY_PATH`, wheel-installed libraries, and
`build/lib`.
Verified with:
```bash
pre-commit run --files python/tvm/libinfo.py
uv run python -c "import tvm"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]