added the uninstall script

This commit is contained in:
Tarek Ziadé 2009-07-01 09:04:12 +00:00
parent 667184c290
commit 903c283912
1 changed files with 14 additions and 1 deletions

View File

@ -133,7 +133,7 @@ To address those issues, this PEP proposes a few changes:
- New APIs in `pkgutil` to be able to query the information of installed
distributions.
- A de-facto replacement for PEP 262
- An uninstall function in Distutils.
- An uninstall function and an uninstall script in Distutils.
.egg-info becomes a directory
@ -626,6 +626,19 @@ previously installed. This is useful when a third-party program that relies
on Distutils APIs does extra steps on the system at installation time,
it has to undo at uninstallation time.
Adding an Uninstall script
==========================
An `uninstall` script will be added in Distutils. and will be used
like this::
$ python -m distutils.uninstall packagename
Notice that script will not control if the removal of a distribution breaks
another distribution. Although it will make sure that all the files it removes
are not used by any other distribution, by using the uninstall function.
Backward compatibility and roadmap
==================================