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.

Title: venv: recreate symlinks on --upgrade
Type: enhancement Stage:
Components: Library (Lib) Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ThiefMaster, macpherson.scott
Priority: normal Keywords:

Created on 2021-03-16 13:57 by ThiefMaster, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg388840 - (view) Author: ThiefMaster (ThiefMaster) Date: 2021-03-16 13:57
When using `python -m venv --upgrade someenv`, it rewrites `pyvenv.cfg` with the current python version but leaves the python symlinks untouched (

This is of course fine when the original location of the Python interpreter is something like `/usr/bin/python3.9`, but when using pyenv it's a path containing the full version such as `/home/USER/.pyenv/versions/3.9.2/bin/python`, which makes in-place updates of minor Python versions harder than needed (manual update of the symlink needed).

IfF you agree that this change makes sense, I wouldn't mind sending a PR for this...
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87679
2021-08-27 05:46:23macpherson.scottsetnosy: + macpherson.scott
2021-03-16 13:57:10ThiefMastercreate