From 971f17ede849bfe484bf8d2b39ef7626fd265878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Tue, 22 Jun 2010 21:40:19 +0200 Subject: [PATCH] Use Python's compileall module instead of pycompile to byte-compile debpython module as logging module is not available in pythonX.Y-minimal package (Closes: 586743) --- debian/changelog | 8 ++++++++ debian/python-minimal.postinst | 5 ++++- debian/python-minimal.prerm | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 992a660..a05ce73 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +python-defaults (2.6.5-5) unstable; urgency=medium + + * Use Python's compileall module instead of pycompile to byte-compile + debpython module as logging module is not available in pythonX.Y-minimal + package (Closes: 586743) + + -- Piotr Ożarowski <piotr@debian.org> Tue, 22 Jun 2010 10:46:48 +0200 + python-defaults (2.6.5-4) unstable; urgency=low [ Piotr Ożarowski ] diff --git a/debian/python-minimal.postinst b/debian/python-minimal.postinst index d723bd0..63645b1 100644 --- a/debian/python-minimal.postinst +++ b/debian/python-minimal.postinst @@ -1,4 +1,7 @@ #! /bin/sh -e -pycompile -p python-minimal + +# runpy.py is not available in pythonX.Y-minimal and thus "python -m compileall" +# cannot be used, temporary workaround: +python /usr/lib/python2.6/compileall.py /usr/share/python/ >/dev/null #DEBHELPER# diff --git a/debian/python-minimal.prerm b/debian/python-minimal.prerm index 0c01985..513b85d 100644 --- a/debian/python-minimal.prerm +++ b/debian/python-minimal.prerm @@ -1,4 +1,4 @@ #! /bin/sh -e -pyclean -p python-minimal +find /usr/share/python/ -name '*.py[oc]' -delete #DEBHELPER# -- GitLab