You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that for several crates, pyo3-build-config and its dependencies are rebuilt between running cargo clippy and cargo test. Looking into Cargo's debug log, I found
[2022-04-15T08:53:35Z INFO cargo::core::compiler::fingerprint] fingerprint error for pyo3-build-config v0.16.4/RunCustomBuild/TargetInner { ..: custom_build_target("build-script-build", "/home/adam/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-build-config-0.16.4/build.rs", Edition2018) }
[2022-04-15T08:53:35Z INFO cargo::core::compiler::fingerprint] err: env var `PATH` changed: previously Some("/home/adam/.cargo/bin:/home/adam/.cargo/bin:/home/adam/.local/bin:/home/adam/.local/bin:/home/adam/bin:/usr/local/bin:/usr/bin:/bin"), now Some("/home/adam/.cargo/bin:/home/adam/.cargo/bin:/home/adam/.cargo/bin:/home/adam/.cargo/bin:/home/adam/.local/bin:/home/adam/.local/bin:/home/adam/bin:/usr/local/bin:/usr/bin:/bin")
which seems to be Cargo or Rustup adding additional directories to PATH (but they are the same as the existing ones).
I am not actually sure that we can do anything about this in PyO3 or if rather Cargo or Rustup need to be changed to be more clever about changing path. (I am still not sure who changes the PATH environment variable (and similarly LD_LIBRARY_PATH), but I think it must be Rustup as it should be the only one knowing about these paths.)
Steps to Reproduce
For example, running ./x.py on the code from PyO3/rust-numpy#322 will show the behaviour described above.
Backtrace
No response
Your operating system and version
OpenSUSE Tumbleweed
Your Python version (python --version)
3.8.13
Your Rust version (rustc --version)
22.0.4
Your PyO3 version
0.16.4
How did you install python? Did you use a virtualenv?
System-wide installation via package manager.
Additional Info
No response
The text was updated successfully, but these errors were encountered:
Bug Description
I noticed that for several crates,
pyo3-build-config
and its dependencies are rebuilt between runningcargo clippy
andcargo test
. Looking into Cargo's debug log, I foundwhich seems to be Cargo or Rustup adding additional directories to
PATH
(but they are the same as the existing ones).I am not actually sure that we can do anything about this in PyO3 or if rather Cargo or Rustup need to be changed to be more clever about changing path. (I am still not sure who changes the
PATH
environment variable (and similarlyLD_LIBRARY_PATH
), but I think it must be Rustup as it should be the only one knowing about these paths.)Steps to Reproduce
For example, running
./x.py
on the code from PyO3/rust-numpy#322 will show the behaviour described above.Backtrace
No response
Your operating system and version
OpenSUSE Tumbleweed
Your Python version (
python --version
)3.8.13
Your Rust version (
rustc --version
)22.0.4
Your PyO3 version
0.16.4
How did you install python? Did you use a virtualenv?
System-wide installation via package manager.
Additional Info
No response
The text was updated successfully, but these errors were encountered: