[Sugar-devel] Port to TelepathyGLib
Rahul Bothra
f2016015 at pilani.bits-pilani.ac.in
Wed May 16 14:47:19 EDT 2018
Hi,
I started understanding how Telepathy and DBus work, and porting our code
to use their PyGI bindings instead of static bindings, and it looks like a
big task.
Also, GitHub search gives 72 results
https://github.com/search?p=5&q=org%3Asugarlabs+%22from+telepathy%22&type=Code&utf8=%E2%9C%93
for instances of telepathy
Instead, Should we pack the static binding port of Telepathy inside
Sugar-Toolkit. The only change that will then have to be made will be:
"from telepathy.foo import bar" will have to be changed to "from
sugar3.telepathy.foo import bar"
Please suggest if there can be any disadvantages in following this approach
? (Sorry, if it is obvious)
Regards
Rahul Bothra (Pro-Panda)
On Wed, May 16, 2018 at 3:56 AM, James Cameron <quozl at laptop.org> wrote:
> On Tue, May 15, 2018 at 11:02:49PM +0530, Rahul Bothra wrote:
> > - Rahul will also contact upstream(s) of Telepathy to ask their
> > plans of a Python 3.x Telepathy version
>
> Telepathy upstream suggested using PyGObject API, available for both
> Python 2 and Python 3.
>
> https://lazka.github.io/pgi-docs/#TelepathyGLib-0.12
>
> On Ubuntu 18.04 install package gir1.2-telepathyglib-0.12 and then
> this test passes;
>
> $ python2
> >>> from gi.repository import TelepathyGLib
>
> $ python3
> >>> from gi.repository import TelepathyGLib
>
> For the moment, development can happen with your static binding port
> of Telepathy, but we should not plan to rely on it, because
> downstreams already have a Python 3 Telepathy in the form of
> TelepathyGLib.
>
> So we must port.
>
> https://github.com/orgs/sugarlabs/projects updated with new "Port to
> TelepathyGLib"
> https://github.com/orgs/sugarlabs/projects/4
>
> <quote>
> Change from
>
> from telepathy.foo import bar
>
> to
>
> import gi
> gi.require_version('TelepathyGLib', '0.12')
> from gi.repository import TelepathyGLib
>
> Prerequisite for Port to Python 3.
> </quote>
>
> --
> James Cameron
> http://quozl.netrek.org/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20180517/8db60f82/attachment.html>
More information about the Sugar-devel
mailing list