[Distutils] setup.py clean questions + uninstall
M.-A. Lemburg
mal@lemburg.com
Fri Feb 16 05:12:59 2001
Jack Jansen wrote:
>
> > Good point, but unfortunately difficult to implement since the
> > clean command gets its parameter from the build command and
> > you can easily override the names of the various build directories
> > on the command line or via setup.cfg.
> >
> > OTOH, the clean could simply *try* to remove the directory
> > trees using the default names and produce a warning in case
> > this fails. We'd then need to expose the temp name generation logic
> > in the build command, e.g. 'rm -rf temp.<platform>-* lib.<platform>-*'
> > should do the trick. Alternatively, the clean command could simply
> > remove the complete build_base tree...
>
> Well, Jeremy was asking for a distclean-like facility, so I think that that is
> the solution.
Ok, should we modify the clean command's --all option to
do a rm -rf build then ?
> And, while we're at it, I wouldn't mind an uninstall either.
Patches appreciated ;-)
Seriously, I think this needs a PEP since it targets a very
special area: that of maintaining a Python (installation) registry.
Jython already has something like this, so maybe we can learn
from it for CPython... ideally, the registry should live in the
config dir of the Python installation (could produce problems with
file permissions though, e.g. in case someone wants to install
a package in a private dir).
--
Marc-Andre Lemburg
______________________________________________________________________
Company: http://www.egenix.com/
Consulting: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/