]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516)
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 22 Mar 2020 18:31:46 +0000 (19:31 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 18:31:46 +0000 (14:31 -0400)
commit044cf94f610e831464a69a8e713dad89878824ce
tree622bf157b4a4202667aec282484eb305b090c7b7
parent05e4a296ecc127641160a04f39cc02c0f66a8c27
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516)

* bpo-22490: Remove "__PYVENV_LAUNCHER__" from the shell environment on macOS

This changeset removes the environment varialbe "__PYVENV_LAUNCHER__"
during interpreter launch as it is only needed to communicate between
the stub executable in framework installs and the actual interpreter.

Leaving the environment variable present may lead to misbehaviour when
launching other scripts.

* Actually commit the changes for issue 22490...

* Correct typo

Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
* Run make patchcheck

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
Lib/test/test_subprocess.py
Lib/test/test_venv.py
Mac/Tools/pythonw.c
Misc/NEWS.d/next/Core and Builtins/2018-09-23-16-32-58.bpo-22490.8e0YDf.rst [new file with mode: 0644]
Python/initconfig.c