]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 22 Mar 2020 18:56:26 +0000 (11:56 -0700)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 18:56:26 +0000 (14:56 -0400)
commitc959fa9353b92ce95dd7fe3f25fe65bacbe22338
treee19133af7da40d79fa702460ea23345e018acbf6
parent687f5921a46cf95c2a648d8031f9e99cdcc3e6b7
bpo-22490: Remove __PYVENV_LAUNCHER__ from environment during launch (GH-9516) (GH-19110)

* 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>
(cherry picked from commit 044cf94f610e831464a69a8e713dad89878824ce)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.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