install_xapian.sh - unpin sphinx for xapian >= 1.4.12

This commit is contained in:
Alejandro R. Sedeño 2021-09-20 17:37:24 -04:00 committed by Claude Paroz
parent d84ae774cb
commit 2da3db630d
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,12 @@ fi
# The bindings for Python require python-sphinx
echo "Installing Python-Sphinx..."
pip install "sphinx<2"
SPHINX2_FIXED_VERSION=1.4.12
if [ $(printf "${VERSION}\n${SPHINX2_FIXED_VERSION}" | sort -V | head -n1) = "${SPHINX2_FIXED_VERSION}" ]; then
pip install sphinx
else
pip install "sphinx<2"
fi
echo "Installing Xapian-bindings..."
cd $VIRTUAL_ENV/packages/${BINDINGS}