This commit is contained in:
2017-01-26 16:52:05 -05:00
parent 8f40d66821
commit 71aae61494
+4 -4
View File
@@ -386,10 +386,10 @@ def do_purge(bare=False, downloads=False, allow_global=False):
# Remove setuptools and friends from installed, if present.
for package_name in ['setuptools', 'pip', 'wheel', 'six']:
try:
installed.remove(package_name)
except ValueError:
pass
try:
installed.remove(package_name)
except ValueError:
pass
if not bare:
click.echo('Found {0} installed package(s), purging...'.format(len(installed)))