kitemmodels python bindings

Dmitry Shachnev mitya57 at debian.org
Wed Nov 30 13:59:52 UTC 2016


Hi Harald!

On Wed, Nov 30, 2016 at 01:41:56PM +0100, Harald Sitter wrote:
> Ahoy ahoy,
>
> I gave packaging the new python bindings in kitemmodels a stab and was
> hoping for some peer review as I haven't created a python package in
> years.
>
> https://packaging.neon.kde.org/frameworks/kitemmodels.git/commit/?id=8f6ffd64e7f7655f4780697a8046b09bcd2432e5
>
> One thing I am particularly unsure about is whether or not
> usr/lib/python3.Y/ is an acceptable installation path or if indeed
> coercing it to be usr/lib/python3/ is the way to go.

The latter, it should be moved into usr/lib/python3/.

Please also run dh_python3 and dh_sip3 in debian/rules (i.e. somehow add
python3,sip3 to the dh --with list).

It is not mandatory but highly recommended to build for all supported
Python 3 versions. At the moment we only have one version (3.5) so this
may be tricky to test, but please take a note for the future.

Re your problem with the __init__.py file:

> - __init__.py is meant to be packaged separately by one bindings generating
>   framework but shared across all of them. as a result we have a package
>   which only contains the __init__ and a package for the actual module
>   I find this fairly shit but apparently the rest of the world doesnt care

You can use a python3-pykf5.kitemmodels.pyinstall file for that. This way
the __init__.py will be not part of the package, but generated by the postinst
script on the system if it does not already exist. See dh_python3(1) for
details.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-kde-talk/attachments/20161130/efc8dcbb/attachment.sig>


More information about the pkg-kde-talk mailing list