Fix installed package discovery

- Exclude python when searching virtualenvs created using nested
  virtualenv interpreters (via `lib-dynload` library directory)

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2019-02-19 20:29:26 -05:00
parent 5ac228e68f
commit bfdb9aed87
4 changed files with 19 additions and 13 deletions
+2 -1
View File
@@ -630,7 +630,8 @@ def sync(
def clean(ctx, state, dry_run=False, bare=False, user=False):
"""Uninstalls all packages not specified in Pipfile.lock."""
from ..core import do_clean
do_clean(ctx=ctx, three=state.three, python=state.python, dry_run=dry_run)
do_clean(ctx=ctx, three=state.three, python=state.python, dry_run=dry_run,
system=state.system)
# Only invoke the "did you mean" when an argument wasn't passed (it breaks those).