Nick Coghlan added the comment: Running this command in the installer should now clean up pip and setuptools:
python -m ensurepip._uninstall If pip is not installed, it silently does nothing. If pip is installed, but doesn't match ensurepip.version(), it throws RuntimeError. If pip is installed and is the expected version, it removes both pip and setuptools (there's no separate version check before removing setuptools) The tests in test_ensurepip are mocked out (to avoid any side effects on the test process), but test_venv now covers both installation and uninstallation (since it invokes a subprocess, thus avoiding the side effect problem). ---------- assignee: ncoghlan -> loewis _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19728> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com