Python – How to install django-haystack using buildout

buildoutpython

I'm trying to convert a current Django project in development to use zc.buildout So far, I've got all the bits figured except for Haystack figured out.

The Haystack source is available on GitHub, but I don't want to force users to install git. A suitable alternative seems to be to fetch a tarball from here

That tarball contains a setuptools setup.py, and it seems like it should be so easy to get buildout to install it. Halp!

Best Answer

It seems they've fixed the package to work from the tarball. James' fork is not working right now, but you can use the same recipe passing it the standard url:

[haystack]
recipe = collective.recipe.distutils
url = http://github.com/toastdriven/django-haystack/tarball/master

This worked for me and is 100% hack free.