mirror of https://github.com/pypa/pip
Use os.path.lexists when checking for virtualenvs
This commit is contained in:
parent
fc4109eb1d
commit
e342357d2b
|
@ -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)**
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue