[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_python2 and private directories



[Barry Warsaw, 2011-07-27]
> Another question about the intent of dh_python2, this time as it relates to
> private packages.
> 
> So, I'm converting ibus-table, which installs some .py files into
> /usr/share/ibus-table/engine.  I've been playing with different incantations
> of the binary-indep rule:
> 
>         ...
> 	dh_python2
> 	dh_python2 /usr/share/ibus-table/engine
> 
> which is what we're currently recommending people on the transitions page.  If
> I look at the resulting usr/share/python/runtime.d/ibus-table.rtupdate, I see
> two sections:
> 
> -----snip snip-----
> #! /bin/sh
> set -e
> if [ "$1" = rtupdate ]; then
> 	pyclean /usr/share/ibus-table
> 	pycompile  /usr/share/ibus-table
> fi
> if [ "$1" = rtupdate ]; then
> 	pyclean /usr/share/ibus-table/engine
> 	pycompile  /usr/share/ibus-table/engine
> fi
> -----snip snip-----
> 
> Now, there's nothing wrong with this, but the first stanza is unnecessary.
> The only .py files laid down by the package are in
> /usr/share/ibus-table/engine, so only the second stanza does anything useful.
> The first doesn't hurt but it's unnecessary, afaict.

doesn't dh_python2 alone do the right thing? Do you really need
`dh_python2 /usr/share/ibus-table/engine`? If you do, then I need to
change pyclean/pycompile a bit (and add support for "-p" and dir
argument at the same time)
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


Reply to: