[Distutils] nailed-down versions by having custom index

Tres Seaver tseaver at palladion.com
Tue Feb 2 22:25:26 CET 2010

Hash: SHA1

Reinout van Rees wrote:
> Hi all,
> I'd like to do a bit of experimenting with a custom index with only the 
> right packages in just the right versions. Some possible advantages I'm 
> hoping to see for my usecase:
> - Isolation from one of various servers being down (pypi, sourceforge).
> - Guaranteed versions even when not using buildout. (Stuff needs "python 
> setup.py install" in the system python, apparently, for arcgis/arcview 
> on windows to be able to use it).
> Personally, I'd just let everyone use buildout, but I think I won't be 
> able to get that working with that "install it in site-packages" 
> requirement.  (Ideas welcome, of course).
> Question: how to maintain such a custom index?
> iirc chrism has a script to build an apache-served folder structure from 
> a bunch of eggs/tarballs, so just having the tarballs is enough. 
> Probably just putting those tarballs in one location is enough anyway.

You need the 'simple' bookkeeping files:  the attached script builds
them from that directory full of tarballs.  Run it via:

  $ cd /path/to/directory/full/of/tarballs
  $ /path/to/python /path/to/makeindex.py *.{gz,tgz,zip,egg}
  # move aside previous 'simple' first
  $ mv index simple

> But how to get the right collection of tarballs in there? Is that a 
> by-hand approach? Can you automate it?

You might look at compoze:  it is designed to allow fetching sources and
building an index based on the current workingset:


> Question 2: I thought you could only have one index.  So installing 
> something extra from pypi seems out.  How do people handle that?

Fetch it from pypi and put it in your index.

> I'm totally used to buildout and its [versions] list and 
> buildout.dumppickedversions and KGS lists, so I need to reset my 
> thinking on this a little.  I need some input :-)

- --
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: makeindex.py
Type: application/x-httpd-cgi
Size: 4389 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100202/87196e4b/attachment.bin>

More information about the Distutils-SIG mailing list