Open sentialx opened 1 month ago
This should be easy to fix, just need to skip writing the pyo3 config file if it's already up-to-date to avoid changing file modification time:
https://github.com/PyO3/maturin/blob/8cf2e152179d39169225e1dbb8854aac9b6ba822/src/compile.rs#L418
Pull requests are welcome.
Can I try this one?
sure!
Bug Description
Providing an
--interpreter
option causes recompilation of pyo3 on every build on Linux (Windows works fine).Your maturin version (
maturin --version
)1.7.4
Your Python version (
python -V
)3.12
Your pip version (
pip -V
)24.0
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
maturin build --release -o out --skip-auditwheel --interpreter python3.12