maturin
maturin copied to clipboard
Make it possible to skip passing `--interpreter` option when building editable wheels via pep517 backend
PEP 517 build backend uses build isolation by default and in some cases for example when using Poetry to manage a pyo3 module as a path dependency, build isolation can't be disabled.
Thus the --interpreter/-i option we pass to maturin pep517 build-wheel varies among executions because it points to a random python interpreter in /tmp. This causes unnecessary rebuild of pyo3 crate due to PYO3_PYTHON env var value changes.
I think at least for editable wheels we could try not passing a random --interpreter path, making it possible to better utilize cache. It should be an opt-in option of course.