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 Antony.Lee
Recipients Antony.Lee
Date 2017-09-21.09:41:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
All's in the title: "pth files in site-packages of venvs are executed twice".  For example, the following code sample prints "1" twice.

python -mvenv /tmp/tmpenv
echo 'import os; print(1)' >/tmp/tmpenv/lib/python3.6/site-packages/foo.pth
source activate /tmp/tmpenv

This behavior is different from the one for a pth file in a non-venv site-packages (either the syswide prefix, or the user prefix), which is only executed once.
Date User Action Args
2017-09-21 09:41:38Antony.Leesetrecipients: + Antony.Lee
2017-09-21 09:41:38Antony.Leesetmessageid: <>
2017-09-21 09:41:38Antony.Leelinkissue31542 messages
2017-09-21 09:41:38Antony.Leecreate