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 ThiefMaster
Recipients ThiefMaster
Date 2021-03-16.13:57:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1615903030.34.0.439862030712.issue43513@roundup.psfhosted.org>
In-reply-to
Content
When using `python -m venv --upgrade someenv`, it rewrites `pyvenv.cfg` with the current python version but leaves the python symlinks untouched (https://github.com/python/cpython/blob/a8ef4572a6b28bcfc0b10b34fa4204954b9dd761/Lib/venv/__init__.py#L248)

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...
History
Date User Action Args
2021-03-16 13:57:10ThiefMastersetrecipients: + ThiefMaster
2021-03-16 13:57:10ThiefMastersetmessageid: <1615903030.34.0.439862030712.issue43513@roundup.psfhosted.org>
2021-03-16 13:57:10ThiefMasterlinkissue43513 messages
2021-03-16 13:57:10ThiefMastercreate