[Distutils] nailed-down versions by having custom index
carl at dirtcircle.com
Tue Feb 2 22:38:28 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Reinout van Rees wrote:
> 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:
I use chishop for this with success: http://github.com/ask/chishop
It emulates PyPI's API, so you can get the packages in there easily
enough by adding your chishop url in .pypirc and (using Python 2.6)
"python setup.py sdist upload -r my_server".
> Question 2: I thought you could only have one index. So installing
> something extra from pypi seems out. How do people handle that?
I use pip (and pip requirements files) for installation, and pip has
both the -i/--index-url option (for replacing PyPI entirely) and the
- --extra-index-url option (for layering another index in addition to
PyPI). I don't know how one would do that with other tools.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Distutils-SIG