This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients dstufft, loewis, ncoghlan, ned.deily, python-dev
Date 2013-11-30.07:22:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385796175.33.0.948571152368.issue19728@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2013-11-30 07:22:55ncoghlansetrecipients: + ncoghlan, loewis, ned.deily, python-dev, dstufft
2013-11-30 07:22:55ncoghlansetmessageid: <1385796175.33.0.948571152368.issue19728@psf.upfronthosting.co.za>
2013-11-30 07:22:55ncoghlanlinkissue19728 messages
2013-11-30 07:22:54ncoghlancreate