Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix launching Python 3.11 from <3.8 on macOS
On macOS, some older versions of Python leak __PYVENV_LAUNCHER__ into the interpreter's environment variables. Starting with Python 3.11, this causes problems with Python being able to start correctly when launched from the Python bootstrap template. This change introduces a workaround to prevent the problematic environment variable from leaking into launched subprocesses. I've verified this problem exists with the version of Python 3.7 included with Xcode, and there are reports of it also being an issue with the Python 3.8 included with Xcode. Later versions of Python have fixed this. Context: - https://issues.pigweed.dev/310293060 - xonsh/xonsh#3576 (comment) - pypa/virtualenv#1458
- Loading branch information