[Pkg-giraffe-discuss] python2/python3 packaging

Guido Günther agx at sigxcpu.org
Mon Jul 31 10:20:06 UTC 2017


Hi,
On Mon, Jul 31, 2017 at 12:01:56PM +0200, Mark Dufour wrote:
> hi guys,
> 
> so for 8.5 we are hard at work to fully support python3, but it's not
> yet entirely clear how to do the packaging. on the RPM side we call
> configure twice with different versions of PYTHON, then collect the
> SWIG libs from swig/python/.libs and package those separately as
> "python-mapi" and "python3-mapi". if anyone would have some
> recommendations that would be great:

https://github.com/agx/gtk-vnc-debian/blob/debian/sid/debian/rules

uses two configure calls to build for two gtk versions. Building for
python2 and 3 is similar.

> 
> -do you know of an example debian.rules file which does a similar thing perhaps?
> -what about python-kopano, which runs fine with python2 and
> python3.. so in principle no need to have a separate python3-kopano?

Since this is public module we want python-kopano and python3-kopano so
that both python2 and python3 projects can use it. All kopano internal
tools should switch to using the python3 version (by changing the
interpreter to /usr/bin/python3).

> -what about something like kopano-search, which also runs fine with
> python2 and 3.. would be a bit awkward to have a
> python3-kopano-search..? :P

for search I'd keep the package name and switch to python3.

Cheers,
 -- Guido

> 
> as said, any advice on how to proceed here would be very much welcome.
> 
> 
> thanks!
> mark.
> 
> 
> Met hartelijke groet, Cordialement, Kind regards,
> 
> Mark Dufour | Developer
> Tel. +31 (0)15 750 4712 | www.kopano.com <https://kopano.com/>
>  <https://kopano.com/conference>
> Kopano Conference 27-28 September 2017 in Arnhem (NL) www.kopano.com/conference <http://www.kopano.com/conference>NEWS | Admin training 101 in August <https://kopano.com/events/admin-training-101-august-10/>
> 
>  <https://www.linkedin.com/company/kopano-hq>  <https://twitter.com/kopanobv>  <https://www.youtube.com/channel/UCl8Nd0TDVgHeZFuOdkiSzIA>  <https://www.facebook.com/meet.kopano/>  <https://plus.google.com/105021094229284761487> 
> _______________________________________________
> Pkg-giraffe-discuss mailing list
> Pkg-giraffe-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-giraffe-discuss



More information about the Pkg-giraffe-discuss mailing list