[Distutils] Re: cleaning up packages
Tue, 06 Jun 2000 10:06:11 -0400
Harry Henry Gebel:
|> With DistUtils, what's the command to clean up all the kibbles and
|> bits in the Python tree associated with a package of a given name. Did I
|> miss it? Or is it that not implemented yet?
|What you are basically talking about is package management for systems
|that do not have a package manager (or whose package manager is not yet
|supported by Distutils). I was (and am) planning on working on this
Glad to hear it! Sounds like you're familiar with Redhat manager. I'm
reasonably familiar with the BSD manager. So if you need someone to bounce
ideas off of I'd be happy to contribute.
|but have not had a chance to start; and may not for awhile. I do not know
|what Greg's plans are for this; I was thinking a sort of mini-RPM-like
|database but have not heard what other ideas people might have.
Here's a thought to spark the discussion. For simple package listing and
deletion support, how about:
where each module-dist's CONTENTS contains a list of files to delete (and
possibly other cleanup-related commands).
I confess I'm borrowing much from the FreeBSD package manager scheme, which
stores package info in:
Here's Distutils's +CONTENTS file, for example:
As you can see, it contains which files to remove when deleting the
package. Any associated cleanup commands (remove directories, etc.) are
prefixed by an "@" (see bottom for example).