Mercurial > evolve
comparison debian/rules @ 4632:a1d191feaa84 stable
debian: Override default value for SPHINXBUILD in docs/makefile
Sphinx now defaults to Python 3 in Debian Buster, so we need to
explicitly select the Python 2 version of sphinx-build for building
docs.
author | Faheem Mitha <faheem@faheem.info> |
---|---|
date | Fri, 03 May 2019 03:52:44 +0530 |
parents | 9fa3585b160f |
children | 6292fe564b20 |
comparison
equal
deleted
inserted
replaced
4631:150be007f421 | 4632:a1d191feaa84 |
---|---|
4 %: | 4 %: |
5 dh $@ --with python2 --buildsystem=python_distutils | 5 dh $@ --with python2 --buildsystem=python_distutils |
6 | 6 |
7 override_dh_auto_build: | 7 override_dh_auto_build: |
8 dh_auto_build | 8 dh_auto_build |
9 $(MAKE) -C docs | 9 # Workaround for Sphinx in Debian Buster defaulting to Python 3 |
10 SPHINXBUILD=/usr/share/sphinx/scripts/python2/sphinx-build $(MAKE) -C docs | |
10 | 11 |
11 hgsrc_defined: | 12 hgsrc_defined: |
12 # Use "! -z" instead of "-n", because "-n" without arguments is true | 13 # Use "! -z" instead of "-n", because "-n" without arguments is true |
13 test ! -z $(HGSRC) && test -d $(HGSRC) || (echo "$(HGSRC) is not a directory"; false) | 14 test ! -z $(HGSRC) && test -d $(HGSRC) || (echo "$(HGSRC) is not a directory"; false) |
14 | 15 |