comparison debian/rules @ 6137:0562705ae984

debian: drop all python2 Should no longer be needed on Debian 11+.
author Kim Alvefur <zash@zash.se>
date Fri, 07 Jan 2022 20:09:21 +0100
parents 95500f2f0966
children 623517b1d83b
comparison
equal deleted inserted replaced
6136:95500f2f0966 6137:0562705ae984
5 dh $@ --with python3,sphinxdoc --buildsystem=pybuild 5 dh $@ --with python3,sphinxdoc --buildsystem=pybuild
6 6
7 ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS))) 7 ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
8 override_dh_auto_build: 8 override_dh_auto_build:
9 dh_auto_build 9 dh_auto_build
10 # Workaround for Sphinx in Debian Buster defaulting to Python 3 10 $(MAKE) -C docs
11 SPHINXBUILD="python3 -m sphinx -bhtml" $(MAKE) -C docs
12 endif 11 endif
13 12
14 hgsrc_defined: 13 hgsrc_defined:
15 # Use "! -z" instead of "-n", because "-n" without arguments is true 14 # Use "! -z" instead of "-n", because "-n" without arguments is true
16 test ! -z $(HGSRC) && test -d $(HGSRC) || (echo "$(HGSRC) is not a directory"; false) 15 test ! -z $(HGSRC) && test -d $(HGSRC) || (echo "$(HGSRC) is not a directory"; false)