maturin fails to package .so.1 in target directory #1087
-
I have a PyO3 project with python and Rust code. One of the Rust crate dependencies is catboost, which has its own build.rs script and compiles an rlib and an .so.1 library file. The catboost .so.1 file is correctly build by maturin (triggering cargo build) and is present deep in a When trying to build a manylinux_2_28 wheel using maturin, however, I get the following:
I can build the wheel using
If I unzip the wheel and look at the output of
How can I help maturin find and include this file? Why is it ignoring the library? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Both upstream and our auditwheel did not take maturin/src/auditwheel/repair.rs Line 12 in 2934c67
Edit: Fixed in #1092 |
Beta Was this translation helpful? Give feedback.
Both upstream and our auditwheel did not take
.so
files intarget
directory into consideration thus the error.maturin/src/auditwheel/repair.rs
Line 12 in 2934c67
LD_LIBRARY_PATH
only works when not cross compiling, but it could be a bug if it does not work for you, I didn't test it thoroughly.https://github.com/messense/lddtree-rs/blob/9ea2b0cedff62f199f837b6b0e9f4449e301b236/src/lib.rs#L196-L200
Edit: Fixed in #1092