running `CARGO_LOG=debug cargo test --package engi...
# development
f
running
CARGO_LOG=debug cargo test --package engine
is failing for me with:
Copy code
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?
src/rust/engine/build.rs
looks for changes in PY config variable but pyo3 loos at
PYO3_PYTHON
for python interpreter overrides\
I had set
PY
to
$HOME/.pyenv/shims/python3.9
never mind, I am invoking
cargo
directly and our top-level
./cargo
wrapper sets
PYO3_PYTHON
before invoking cargo.