Venv module upgrade support for Python installs in same dir, from source using target altinstall?

Today I learned about the venv module’s --upgrade flag. Cool!

I wondered if it might support updating virtualenvs created from Python installed from source using target altinstall, all located in the same containg dir. I tried this out, and found that it updated the venv’s pyenv.cfg but not the links in venv/bin

It would be great if the --upgrade flag supported Python installations located in the same containing dir, including those installed from source using target altinstall, though they’re not official system installs.

Correct, because it’s “assuming Python has been upgraded in-place.” So all it does it update pyvenv.cfg as it assumes the symlinks already point to the upgraded Python.