-----BEGIN PGP SIGNED MESSAGE----- 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: http://svn.repoze.org/compoze/trunk/
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. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAktomEYACgkQ+gerLs4ltQ43DwCgkPpva6OsQ6xf/en8B2mSVIvv RDgAnRG1pHEreyJmTk/5c6Z2BM4zYV7J =tkVM -----END PGP SIGNATURE-----