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.

Author ronaldoussoren
Recipients eric.snow, ned.deily, ronaldoussoren, steve.dower, vinay.sajip
Date 2022-03-01.20:31:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646166693.15.0.688832843075.issue46890@roundup.psfhosted.org>
In-reply-to
Content
The change to _base_executable is the real problem. Venv creates the correct directory structure if I add a sitecustomize.py to the python path that sets _base_executable to the correct value.

# sitecustomize
import sys
sys._base_executable = sys.executable
# EOF

Is sys._base_executable updated after running getpath.py? On first glance getpath.py does update config['base_executable'] and _PyConfig_FromDict reads that value back, but that's based on a quick scan through the code. I haven't tried debugging this yet.
History
Date User Action Args
2022-03-01 20:31:33ronaldoussorensetrecipients: + ronaldoussoren, vinay.sajip, ned.deily, eric.snow, steve.dower
2022-03-01 20:31:33ronaldoussorensetmessageid: <1646166693.15.0.688832843075.issue46890@roundup.psfhosted.org>
2022-03-01 20:31:33ronaldoussorenlinkissue46890 messages
2022-03-01 20:31:33ronaldoussorencreate