[issue19728] PEP 453: enable pip by default in the Windows binary installers

Nick Coghlan report at bugs.python.org
Sat Nov 30 08:22:55 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19728>
_______________________________________


More information about the Python-bugs-list mailing list