Package: python-support
Version: 0.3.8
Severity: normal
Hi,
I am currently working on a package that ships private modules for python2.4
only.
As python-support cannot handle byte compilation for private modules for
non-default
python versions, I wrote my own postinst and prerm scripts using 'pyverions
-r', and added
the --noscripts flag to dh_pysupport in debian/rules.
However, dh_pysupport still adds its parts in postinst and prerm scripts, and I
had to remove
#DEBHELPER# token from them so as to prevent this issue, which causes a lintian
warning
and can be a problem for other package.
I have the following in my debian/rules:
binary-install/listen::
dh_pysupport --noscripts
dh_python usr/lib/listen
For reference, my postinst script is:
#!/bin/sh
set -e
PYVERS=$(pyversions -r 2>/dev/null)
if [ "$1" = "configure" ] && which update-python-modules >/dev/null 2>&1; then
for python in $PYVERS; do
$python /usr/sbin/update-python-modules -b
/usr/share/python-support/listen.dirs
done
fi
exit 0
Cheers,
Julien
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.6-hathor
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages python-support depends on:
ii python 2.3.5-11 An interactive high-level object-o
python-support recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]