From: Simon McVittie Date: Sat, 6 Jan 2018 21:54:31 +0000 (+0000) Subject: Change rst plugin's interpreter from Python 2 to Python 3 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d0cf10edbc8c08f8d93c1475f4dd667b0f78d4b3 Change rst plugin's interpreter from Python 2 to Python 3 --- diff --git a/debian/changelog b/debian/changelog index d12e748a7..5eacd3bf8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ ikiwiki (3.20180105-1) UNRELEASED; urgency=medium - d/watch: Look for new releases in upstream git * New upstream release - d/copyright: Drop stanzas for files no longer shipped + * Change rst plugin's interpreter from Python 2 to Python 3 -- Simon McVittie Sat, 06 Jan 2018 15:14:29 +0000 diff --git a/debian/control b/debian/control index d7aa4d612..80c3e5ab8 100644 --- a/debian/control +++ b/debian/control @@ -96,8 +96,8 @@ Suggests: libxml-writer-perl, po4a (>= 0.35-1), polygen, - python, - python-docutils, + python3, + python3-docutils, texlive, tidy, viewvc | gitweb | viewcvs, diff --git a/debian/rules b/debian/rules index cf3087d1d..e5b3c0ded 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,11 @@ override_dh_auto_configure: # keeps it out of /usr/local dh_auto_configure -- PREFIX=/usr +override_dh_auto_install: + dh_auto_install + perl -p -i -e '1s,^#!.*/python$$,#!/usr/bin/python3,' \ + debian/tmp/usr/lib/ikiwiki/plugins/* + override_dh_compress: # avoid compressing files in the doc wiki dh_compress -Xhtml