classification
Title: Support non-standard executables in venv
Type: enhancement Stage: needs patch
Components: Windows Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: paul.moore, steve.dower, tim.golden, vinay.sajip, zach.ware
Priority: normal Keywords: patch

Created on 2021-10-08 00:09 by steve.dower, last changed 2021-10-08 00:14 by steve.dower.

Pull Requests
URL Status Linked Edit
PR 28817 open steve.dower, 2021-10-08 00:12
Messages (2)
msg403450 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-10-08 00:09
Currently the venv redirector on Windows is hardcoded for "python.exe" and "pythonw.exe". There is no good reason for this, and it's fairly easy to make the redirector able to invoke any executable in the base environment by inspecting its own name.

This would help support non-standard environments that include other entry points.
msg403451 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-10-08 00:14
Pushed the branch so the changes are out there, but I still need to check (and probably fix) some handling of the Store package layout. The changes now will probably create some executables that won't work (pip.exe and idle.exe), so we might have to go back to the fixed list of executables.

I think the change to launcher.c is worth keeping though.
History
Date User Action Args
2021-10-08 00:14:23steve.dowersetmessages: + msg403451
stage: patch review -> needs patch
2021-10-08 00:12:53steve.dowersetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request27135
2021-10-08 00:09:01steve.dowercreate