don't unintall needed dependencies

This commit is contained in:
2017-01-26 15:43:28 -05:00
parent 20be6ac101
commit e12a37e1ab
+6
View File
@@ -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))