deinstall (Was: Re: [Distutils] setup.py clean questions )

Rene Liebscher R.Liebscher@gmx.de
Fri Feb 16 08:52:02 2001


"M.-A. Lemburg" wrote:
> 
> Thomas Heller wrote:
> >
> > ...
> >
> > New version: ...
> 
> This works fine except that it does not remove data files
> which are installed in subdirs of the installation, e.g.
> documentation, READMEs and license information:
> 
> data_files = [
> 
>     'mx/Doc/mxExtensions.html',
>     'mx/Doc/mxLicense.html',
> 
>     'mx/DateTime/Doc/mxDateTime.html',
>     'mx/DateTime/Doc/mxDateTime-History.html',
>     'mx/DateTime/Doc/mxLicense.html',
>     'mx/DateTime/COPYRIGHT',
>     'mx/DateTime/LICENSE',
> 
> ]
> 
> Is there some easy way to get at those files from within the
> uninstall command ?

One could try to let the install(_data) command run in a quiet dry_run
mode,
afterwards you could get all file names by calling get_outputs() for
the install command.
(You have to run the command because at least for install_data the
internal outputs variable is set by run(). ) 

Kind regards
Rene Liebscher