happy-kitchen-8948203/17/2021, 1:46 AM
enough-analyst-5443403/17/2021, 1:55 AM
in the hand case and the pex case to see if there are differences there.
PEX_TOOLS=1 the.pex venv --help
The two paths don't match since the venv - when auto-created under ~/pex/venvs - is created in a temporary directory that is atomically renamed. That leads to a mismatch in the script contents and the final resting venv dir name.
$ grep VIRTUAL_ENV= /home/jsirois/.pex/venvs/58fcefe170c11af69bfde52b33ba6424ccb3260f/800ae8ef047bd783543e8282c22bfdbee7b7fca8/bin/activate
happy-kitchen-8948203/17/2021, 3:58 AM