[Pkg-giraffe-discuss] python2/python3 packaging
Simon Eisenmann
s.eisenmann at kopano.com
Mon Jul 31 10:51:26 UTC 2017
-----Original message-----
> From:Guido Günther <agx at sigxcpu.org>
> Sent: Monday 31st July 2017 12:32
> To: Simon Eisenmann <s.eisenmann at kopano.com>
> Cc: pkg-giraffe-discuss at lists.alioth.debian.org (pkg-giraffe-discuss at lists.alioth.debian.org) <pkg-giraffe-discuss at lists.alioth.debian.org>; Mark Dufour <m.dufour at kopano.com>; Carsten Schoenert <c.schoenert at t-online.de>
> >
> > Does the python packaging use dh_python2? If not this might be also
> > the time to change that and use dh_python2 and dh_python3.
>
>
> You can check here:
>
> https://anonscm.debian.org/cgit/pkg-giraffe/kopanocore.git/tree/debian/rules
>
Ok is see thanks. So it all relies ok the upstream build scripts to put the stuff at the right location. @Mark maybe we can have a discussion if and how it would be feasible for us to support dh_python2 and dh_python3 in the future. But not really important if the Debian maintainers are fine with how it is currently done We just need to let python3 stuff appear in usr/lib/python3* and modify https://anonscm.debian.org/cgit/pkg-giraffe/kopanocore.git/tree/debian/python-kopano.install to only installs python2 directories while python3-kopano installs only python3 directories.
To support python3 with this it would be best to have configure flags to turn on/off python2 and python3 building and an additional flag to control what the shebang should be for python based services and scripts. That thay debian/rules can provide flags to build both python2 and python3, have the services use python3. Then all is left to to is to add python3 packages for the moduels and change the dependencies accordingly to python3.
Cheers
Simon
More information about the Pkg-giraffe-discuss
mailing list