]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Change rst plugin's interpreter from Python 2 to Python 3
authorSimon McVittie <smcv@debian.org>
Sat, 6 Jan 2018 21:54:31 +0000 (21:54 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 6 Jan 2018 21:54:31 +0000 (21:54 +0000)
debian/changelog
debian/control
debian/rules

index d12e748a7b3546f8e4292d4b499ff06afc598a85..5eacd3bf8b831242b84ad05a2008a1abe9451d0f 100644 (file)
@@ -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 <smcv@debian.org>  Sat, 06 Jan 2018 15:14:29 +0000
 
index d7aa4d612994bd7ba0f44704e5f433b944df8253..80c3e5ab80ae4cf0f0bc45457ce8ca4a7906fb7b 100644 (file)
@@ -96,8 +96,8 @@ Suggests:
  libxml-writer-perl,
  po4a (>= 0.35-1),
  polygen,
- python,
- python-docutils,
+ python3,
+ python3-docutils,
  texlive,
  tidy,
  viewvc | gitweb | viewcvs,
index cf3087d1db711dc46539c908742b1983f2b70967..e5b3c0ded0a3bcd98b567ec21b0711b1ba31a46e 100755 (executable)
@@ -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