setup: set PYO3_PYTHON to ensure PyO3 uses the right Python
We're currently setting PYTHON_SYS_EXECUTABLE
in setup.py
to ensure that rust-cpython
uses the correct Python installation. In the case of PyO3, we need to set PYO3_PYTHON
instead.
All legacy (hg-git based) Projects have been automatically migrated to native with the upgrade of 2025-01-23
We're currently setting PYTHON_SYS_EXECUTABLE
in setup.py
to ensure that rust-cpython
uses the correct Python installation. In the case of PyO3, we need to set PYO3_PYTHON
instead.