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 <1505986898.8.0.276227616013.issue31542@psf.upfronthosting.co.za>
In-reply-to
Content
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
python

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.
History
Date User Action Args
2017-09-21 09:41:38Antony.Leesetrecipients: + Antony.Lee
2017-09-21 09:41:38Antony.Leesetmessageid: <1505986898.8.0.276227616013.issue31542@psf.upfronthosting.co.za>
2017-09-21 09:41:38Antony.Leelinkissue31542 messages
2017-09-21 09:41:38Antony.Leecreate