added the uninstall script
This commit is contained in:
parent
667184c290
commit
903c283912
15
pep-0376.txt
15
pep-0376.txt
|
@ -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
|
||||
==================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue