Message204780
| 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:55 | ncoghlan | set | recipients:
+ ncoghlan, loewis, ned.deily, python-dev, dstufft |
| 2013年11月30日 07:22:55 | ncoghlan | set | messageid: <1385796175.33.0.948571152368.issue19728@psf.upfronthosting.co.za> |
| 2013年11月30日 07:22:55 | ncoghlan | link | issue19728 messages |
| 2013年11月30日 07:22:54 | ncoghlan | create |
|