[Catalog-sig] [Announce] Distutils Catalog Prototype

Amos Latteier amos@digicool.com
Mon, 26 Feb 2001 17:37:28 -0800

Robin Dunn wrote:

> >   * Executing setup.py to find meta-data is insecure. Plus I've found
> > that many existing distutils archives don't actually expose the
> > meta-data very well this way. I propose that we fix this by having
> > distutils write a meta-data file when you build an archive.
> This sounds like a good idea.  It would probably be useful for other things
> as well.

Once we get agreement that a meta-data file is needed then we can begin
the horrific task if figuring out what format it should be in ;-)

> >   * What API would command-line tools like? XML in some home-cooked DTD?
> > Maybe XML-RPC?
> Definitily XML-RPC.  It's so easy to use from the client side that it
> doesn't make sense to NOT have it IMHO.  That isn't to say that some other
> format in addition to XML-RPC shouldn't be done too, both may make sense.

OK, I'll try to put together something with XML-RPC.
> I don't have time to debug it right now (maybe later) but if you try to load
> this file:
>     http://download.sourceforge.net/pybsddb/bsddb3-3.0b3.tar.gz

Hmm. I get a different error:

Error Type: RuntimeError
Error Value: 'distutils.core.setup()' was never called -- perhaps
'/var/tmp/@11142.3/bsddb3-3.0b3/setup.py' is not a Distutils setup

/home/amos/DistSite/lib/python/Products/DistutilsArchive/Parse.py, line
69, in parse_meta_data
  File /usr/local/lib/python1.5/site-packages/distutils/core.py, line
221, in run_setup
RuntimeError: (see above)

Sure enough, when I fire up the interpreter and try to manually use
distutils.core.run_setup on your archive I get the same error. But your
setup.py looks good. My guess is that this is a distutils error...


Amos Latteier         mailto:amos@digicool.com
Digital Creations     http://www.digicool.com