How to install django-haystack using buildout

I am trying to convert the current Django project to development in order to use zc.buildout. So far, I have all the bits, except that Haystack has figured out.

Haystack source is available on GitHub, but I do not want to force users to install git. It seems like a suitable alternative is getting tarball from here

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

+3
source share
4 answers

They seem to have fixed the tarball package. James's plugin isn’t working right now, but you can use the same recipe by passing it the standard url:

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

It worked for me and 100% hacked.

0
source

I figured this out without sending it to PyPI. (In fact, the release version of django-haystack has not been flagged, so posting to PyPI seems unclean. This is something that should support and will probably do better.)

The relevant section is as follows:

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

I had to create a project fork to remove zip_safe=Falsefrom setup.py. Once I have done what works flawlessly above, even the redirect sent by the above URL.

+4
source

.

[django-haystack]
recipe = zerokspot.recipe.git
repository = git://github.com/toastdriven/django-haystack.git
as_egg = true

[whoosh]
recipe = zerokspot.recipe.git
repository = git://github.com/toastdriven/whoosh.git
branch = haystacked
as_egg = true

, extra-paths.

+2

, GIT, . , . . , . , , , , , . .

, -, , . -, find-links buildout, .

, , , Haystack PyPI, ! ( ).

+1

Source: https://habr.com/ru/post/1712733/


All Articles