Use os.path.lexists when checking for virtualenvs

This commit is contained in:
Tim Heap 2016-07-20 06:00:14 +02:00
parent fc4109eb1d
commit e342357d2b
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@
distributions for interpreters other than the one pip is being run on.
(:pull:`3760`)
* Skip scanning virtual environments even when venv/bin/python is a dangling
symlink.
**8.1.2 (2016-05-10)**

View File

@ -483,7 +483,7 @@ class InstallRequirement(object):
# Don't search in anything that looks like a virtualenv
# environment
if (
os.path.exists(
os.path.lexists(
os.path.join(root, dir, 'bin', 'python')
) or
os.path.exists(