Skip to content

Instantly share code, notes, and snippets.

@ikks
Created February 10, 2012 23:31
Show Gist options
  • Save ikks/1793995 to your computer and use it in GitHub Desktop.
Save ikks/1793995 to your computer and use it in GitHub Desktop.
xapian backend in virtualenv
export MYENV=~/.virtualenvs/tr
export LOCALPYTHON=/usr/lib/python2.7
ln -s $LOCALPYTHON/dist-packages/xapian/__init__.py $MYENV/lib/python2.7/site-packages/xapian.py
ln -s $LOCALPYTHON/dist-packages/xapian/_xapian.so $MYENV/lib/python2.7/site-packages/
if [ ! -f $MYENV/lib/python2.7/site-packages/haystack/backends/xapian_backend.py ]
then
ln -s $MYENV/lib/python2.7/site-packages/xapian_backend.py $MYENV/lib/python2.7/site-packages/haystack/backends/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment