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 cosven
Recipients cosven, uranusjr, vinay.sajip
Date 2018-03-02.12:12:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519992723.6.0.467229070634.issue30811@psf.upfronthosting.co.za>
In-reply-to
Content
It is actually a bug in virtualenv instead of venv.

> the outer environment's pip leaks into the inner environment;

This is true, but why? In short, the inner-env python binary
use `outer-env/` directory as its `prefix` direcotry,
but the `inner-env/` directory is the right `prefix` directory.

When the Python binary is executed, it attempts to determine
its `prefix` (which it stores in sys.prefix), which is then used
to find the standard library and other key files, and by the
`site` module to determine the location of the site-package directories.

However, virtualenv has its own `site` module, which is different
implemented from the site module in stdlib. It makes the inner-python
get a wrong `prefix` value.

> (Could a fix on virtualenv's side help?)
In my own opinion, if virtualenv change its implementation of site.py,
there is a change to fix this.
History
Date User Action Args
2018-03-02 12:12:03cosvensetrecipients: + cosven, vinay.sajip, uranusjr
2018-03-02 12:12:03cosvensetmessageid: <1519992723.6.0.467229070634.issue30811@psf.upfronthosting.co.za>
2018-03-02 12:12:03cosvenlinkissue30811 messages
2018-03-02 12:12:03cosvencreate