# HG changeset patch # User Arun Kulshreshtha # Date 1739480131 18000 # Node ID 53ae4495e5f097df7b44d92d153996c526119996 # Parent 3e8a3db5f5e85ca3a5df60d460e1f5345c9c35cb setup: set PYO3_PYTHON to ensure PyO3 uses the right Python We're already setting PYTHON_SYS_EXECUTABLE to ensure that rust-cpython uses the correct Python interpreter. We should do the same for PyO3 now that Mercurial is migrating to it. diff -r 3e8a3db5f5e8 -r 53ae4495e5f0 setup.py --- a/setup.py Fri Feb 07 23:00:31 2025 +0100 +++ b/setup.py Thu Feb 13 15:55:31 2025 -0500 @@ -1326,6 +1326,7 @@ env['PYTHON_SYS_EXECUTABLE'] = sys.executable env['PYTHONEXECUTABLE'] = sys.executable env['PYTHON'] = sys.executable + env['PYO3_PYTHON'] = sys.executable cargocmd = ['cargo', 'rustc', '--release']