mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
don't unintall needed dependencies
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user