[Distutils] What is needed by an uninstall command to be useful ?

Phillip J. Eby pje at telecommunity.com
Tue Jun 17 17:39:44 CEST 2008

At 02:46 PM 6/17/2008 +0900, David Cournapeau wrote:
>Do you think it would be possible to refactor it to split the 
>distutils/setuptools parts ? I could do it myself, obviously, but I 
>don't know anything about setuptools internals.

A trivial way to do it would be to have your uninstall command take a 
distutils installation log file as its only input argument, and then 
remove those files/directories.  This would ensure that only packages 
installed using --record would be uninstallable.

More information about the Distutils-SIG mailing list