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 vkbo
Recipients vkbo
Date 2020-10-14.08:27:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602664029.5.0.459362621128.issue42032@roundup.psfhosted.org>
In-reply-to
Content
On Debian Bullseye (testing):

Setting

export PYTHONPYCACHEPREFIX=~/.pycache

has previously worked. With Python 3.8.6, this still works in practice, when running python code (the pycache is still redirected), but during initialisation, the python3 executable creates an empty folder named "~" in the folder where the python exec or a python script is run.

Changing the environment variable to:

export PYTHONPYCACHEPREFIX=$HOME/.pycache

resolves the issue.

Expansion of ~ is of course a bit fickly in general, but 

I assume this is not intended. Deleting those folders from command line is rather tricky!
History
Date User Action Args
2020-10-14 08:27:09vkbosetrecipients: + vkbo
2020-10-14 08:27:09vkbosetmessageid: <1602664029.5.0.459362621128.issue42032@roundup.psfhosted.org>
2020-10-14 08:27:09vkbolinkissue42032 messages
2020-10-14 08:27:08vkbocreate