From e12a37e1abf6601c618b91ab4fddb81bd0a2f718 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 26 Jan 2017 15:43:28 -0500 Subject: [PATCH] don't unintall needed dependencies --- pipenv/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pipenv/cli.py b/pipenv/cli.py index eabdbdd5..3bf3ac09 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -384,6 +384,12 @@ def do_purge(bare=False, downloads=False, allow_global=False): freeze = delegator.run('{0} freeze'.format(which_pip(allow_global=allow_global))).out installed = freeze.split() + # Remove setuptools and friends from installed, if present. + installed.remove('setuptools') + installed.remove('pip') + installed.remove('wheel') + installed.remove('six') + if not bare: click.echo('Found {0} installed package(s), purging...'.format(len(installed))) command = '{0} uninstall {1} -y'.format(which_pip(allow_global=allow_global), ' '.join(installed))