This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Deprecate and eventually remove macOS-only PYTHONEXECUTABLE environ variable
Type: Stage: needs patch
Components: Documentation, macOS Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, ned.deily, ronaldoussoren, steve.dower
Priority: normal Keywords:

Created on 2022-03-02 17:45 by ned.deily, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg414382 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2022-03-02 17:45
The PYTHONEXECUTABLE is a holdover from old Python 2 days; AFAIK, it was specifically to support the Build Applet tool which could be used to build macOS app bundles in Python 2. The only place in current Py3 releases where it is used is in the standard library is in the launch of IDLE.app, a usage that should be able to be eliminated. Otherwise, there shouldn't be any need for it by third-parties.  For 3.11, we could eliminate its use by IDLE.app and add a deprecation warning to the docs; not sure about an execution time warning?

https://docs.python.org/3/using/cmdline.html#envvar-PYTHONEXECUTABLE
History
Date User Action Args
2022-04-11 14:59:56adminsetgithub: 91057
2022-03-02 17:45:33ned.deilycreate