<div dir="ltr"><div>Hi,<br><br>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.<br>Also, GitHub search gives 72 results <a href="https://github.com/search?p=5&q=org%3Asugarlabs+%22from+telepathy%22&type=Code&utf8=%E2%9C%93">https://github.com/search?p=5&q=org%3Asugarlabs+%22from+telepathy%22&type=Code&utf8=%E2%9C%93</a> for instances of telepathy<br><br>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:<br>"from telepathy.foo import bar" will have to be changed to "from sugar3.telepathy.foo import bar"<br><br></div><div>Please suggest if there can be any disadvantages in following this approach ? (Sorry, if it is obvious)<br></div><div><br></div><div>Regards<br></div><div>Rahul Bothra (Pro-Panda)<br></div><div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, May 16, 2018 at 3:56 AM, James Cameron <span dir="ltr"><<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, May 15, 2018 at 11:02:49PM +0530, Rahul Bothra wrote:<br>
> - Rahul will also contact upstream(s) of Telepathy to ask their<br>
> plans of a Python 3.x Telepathy version<br>
<br>
Telepathy upstream suggested using PyGObject API, available for both<br>
Python 2 and Python 3.<br>
<br>
<a href="https://lazka.github.io/pgi-docs/#TelepathyGLib-0.12" rel="noreferrer" target="_blank">https://lazka.github.io/pgi-<wbr>docs/#TelepathyGLib-0.12</a><br>
<br>
On Ubuntu 18.04 install package gir1.2-telepathyglib-0.12 and then<br>
this test passes;<br>
<br>
$ python2<br>
>>> from gi.repository import TelepathyGLib<br>
<br>
$ python3<br>
>>> from gi.repository import TelepathyGLib<br>
<br>
For the moment, development can happen with your static binding port<br>
of Telepathy, but we should not plan to rely on it, because<br>
downstreams already have a Python 3 Telepathy in the form of<br>
TelepathyGLib.<br>
<br>
So we must port.<br>
<br>
<a href="https://github.com/orgs/sugarlabs/projects" rel="noreferrer" target="_blank">https://github.com/orgs/<wbr>sugarlabs/projects</a> updated with new "Port to<br>
TelepathyGLib"<br>
<a href="https://github.com/orgs/sugarlabs/projects/4" rel="noreferrer" target="_blank">https://github.com/orgs/<wbr>sugarlabs/projects/4</a><br>
<br>
<quote><br>
Change from<br>
<br>
from telepathy.foo import bar<br>
<br>
to<br>
<br>
import gi<br>
gi.require_version('<wbr>TelepathyGLib', '0.12')<br>
from gi.repository import TelepathyGLib<br>
<br>
Prerequisite for Port to Python 3.<br>
</quote><br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
______________________________<wbr>_________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.<wbr>org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/<wbr>listinfo/sugar-devel</a><br>
</font></span></blockquote></div><br></div></div>