How to define a buildout to install an egg from a URL (without pypi)

I have an egg available as a URL, say http://myhosting.com/somepkg.egg . Now I do not have this somepkg specified in pypi. How to tell buildout to extract and install for me. I tried several recipes, but so far no luck.

TIA

+5
python egg buildout
source share
1 answer

You just need to add the "find links" option to the [buildout] section in the buildout.cfg file. I just checked this inside with the following buildout.cfg.

[buildout] find-links = http://buildslave01/eggs/hostapi.core-1.0_r102-py2.4.egg parts = mypython [mypython] recipe = zc.recipe.egg interpreter = mypython eggs = hostapi.core 

You can simply specify the full path to the egg as the value "find links". Make sure the pyx.y version for eggs matches your local Python version. If they do not match, you will get the wrong error, which is a little misleading.

+5
source share

All Articles