Skip to content

Commit 025279d

Browse files
committed
Fix build envionment error due to changes in jinja/xapian versions.
3.8 and newer are failing to build with xapian held at 1.8.5 with: Could not import extension sphinx.builders.latex (exception: cannot import name 'contextfunction' from 'jinja2' Update to newest xapian on newer platforms.
1 parent e9609a9 commit 025279d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ addons:
5151
- gpgsm
5252

5353
before_install:
54-
# Sphinx required to build the xapian python bindings
55-
- pip install sphinx==1.8.5
54+
# Sphinx required to build the xapian python bindings. Use 1.8.5 on
55+
# older python and newest on newer.
56+
- if [[ $TRAVIS_PYTHON_VERSION == "2."* ]]; then pip install sphinx==1.8.5; fi
57+
- if [[ $TRAVIS_PYTHON_VERSION == "3.[67]" ]]; then pip install sphinx==1.8.5; fi
58+
- if [[ $TRAVIS_PYTHON_VERSION' != "3.[67]" ]] && [[ $TRAVIS_PYTHON_VERSION == '3.'* ]] ; then pip install sphinx; fi
5659
- XAPIAN_VER=$(dpkg -l libxapian-dev | tail -n 1 | awk '{print $3}' | cut -d '-' -f 1)
5760
- cd /tmp
5861
- curl -s -O https://oligarchy.co.uk/xapian/$XAPIAN_VER/xapian-bindings-$XAPIAN_VER.tar.xz

0 commit comments

Comments
 (0)