fast-nail-55400
08/14/2024, 1:25 AMCARGO_LOG=debug cargo test --package engine is failing for me with:
0.899509305s DEBUG main:exec: cargo::core::compiler: Not including path /home/tdyas/.pyenv/versions/3.12.4/lib in runtime library search path because it is outside target root /home/tdyas/Projects/Pants/pants/src/rust/engine/target/debug
Running unittests src/lib.rs (target/debug/deps/engine-282feabd434f2c95)
/home/tdyas/Projects/Pants/pants/src/rust/engine/target/debug/deps/engine-282feabd434f2c95: error while loading shared libraries: libpython3.12.so.1.0: cannot open shared object file: No such file or directory
0.903789682s DEBUG main:exec: cargo: display_error; err=test failed, to rerun pass `-p engine --lib`
The first message hints that cargo is not including the runtime lib directory needed for the test invocation.
I'm more concerned that this is not picking up python 3.9 though. Has anyone had any similar experiences?fast-nail-55400
08/14/2024, 1:32 AMsrc/rust/engine/build.rs looks for changes in PY config variable but pyo3 loos at PYO3_PYTHON for python interpreter overrides\fast-nail-55400
08/14/2024, 1:33 AMPY to $HOME/.pyenv/shims/python3.9fast-nail-55400
08/14/2024, 1:36 AMcargo directly and our top-level ./cargo wrapper sets PYO3_PYTHON before invoking cargo.