<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 4 August 2016 at 15:49, Niels de Vos <span dir="ltr">&lt;<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Aug 04, 2016 at 05:47:04AM -0400, Prashanth Pai wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; The official python bindings to libgfapi has been around for a while now<br>
&gt; in it&#39;s source repo[1] and the API documentation[2] is also up. However,<br>
&gt; it wasn&#39;t made available over regular release channels until now and users<br>
&gt; had to install it from source (which is very easy[3] for Python projects)<br>
&gt;<br>
&gt; There are few ways how libgfapi-python can be made available as packages over<br>
&gt; yum/pypi:<br>
&gt;<br>
&gt; 1. Import libgfapi-python repo as a git submodule in glusterfs repo. Modify the<br>
&gt;    spec file to create a python-libgfapi package. (Or make it part of existing<br>
&gt;    python-gluster package). This way it&#39;ll be part of glusterfs release cycle<br>
&gt;    and development will continue to happen in it&#39;s external repo.<br>
&gt;<br>
&gt; 2. Have libgfapi-python maintain it&#39;s own release numbers and release lifecycle<br>
&gt;    externally. Package it and make it available over pypi so that users can<br>
&gt;    simply do a pip install. This will also allow python bindings to work<br>
&gt;    with any glusterfs versions or release series (3.7, 3.8, master) which is<br>
&gt;    really nice.<br>
<br>
</span>This. We want libgfapi-python to be independent as much as possible. The<br>
same counts for Java, PHP and other bindings to libgfapi. With libgfapi<br>
we try very hard not to break existing users, libgfapi-python is one,<br>
just like Samba, NFS-Ganesha, QEMU, etc.<br>
<br>
But we also need to provide RPM packages in different distributions so<br>
that users can install and manage the packages with the standard tools.<br>
pip works good for developers and certain environments where versions<br>
are not watched/maintained carefully. pip may also not be installed<br>
everywhere, but we would still like Python applications to be able to<br>
use libgfapi-python. (Many admins are against installing software that<br>
does not come from the standard distribution repositories.)<br>
<br>
Users mostly start looking for packages that are available in their<br>
distribution. For Fedora they would do a &quot;dnf search gluster&quot;, CentOS<br>
has &quot;yum search gluster&quot; and Debian based distributions use &quot;apt-cache&quot;.<br>
Integration in distributions is important, so that we (and the packge<br>
maintainers for those distributions) can test the versions that are<br>
provided. pip does not offer the tight integration with distributions<br>
that I expect from a stable software package.<br></blockquote><div><br></div><div>I believe it is better to provide both rpm/deb packages and `pip` installation.</div><div><br></div><div>I have come across situations where I did not have root/sudo privileges in the system but still wanted to install some python packages for testing something. I could create a virtualenv and use `pip install`, which I believe isn&#39;t possible with rpm/deb packages. So it would be really nice to have libgfapi-python release a both rpm/deb packages and upload the it to PyPi.</div><div><br></div><div>Best Regards,</div><div>Vishwanath</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
Niels<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt; 3. Import entire libgfapi-python source code into glusterfs repo and deprecate<br>
&gt;    libgfapi-python repo. Continue all further development in glusterfs repo.<br>
&gt;<br>
&gt; My personal favourite is to make it available over pypi which will work<br>
&gt; across distros but pypi doesn&#39;t seem to be popular here.<br>
&gt;<br>
&gt; libgfapi-python bindings has been tested only against Linux x86-64 and Python<br>
&gt; versions 2.6 and 2.7 in Fedora/CentOS so far. Niels has setup a job in the<br>
&gt; CentOS CI infra that runs ligfapi python tests against glusterfs nightly builds.<br>
&gt;<br>
&gt; Your preference and inputs on how do we go about packaging libgfapi-python<br>
&gt; will help.<br>
&gt;<br>
&gt; [1]: <a href="https://github.com/gluster/libgfapi-python" rel="noreferrer" target="_blank">https://github.com/gluster/<wbr>libgfapi-python</a><br>
&gt; [2]: <a href="http://libgfapi-python.rtfd.io" rel="noreferrer" target="_blank">http://libgfapi-python.rtfd.io</a><br>
&gt; [3]: <a href="http://libgfapi-python.rtfd.io/en/latest/install.html" rel="noreferrer" target="_blank">http://libgfapi-python.rtfd.<wbr>io/en/latest/install.html</a><br>
&gt;<br>
&gt;  -Prashanth Pai<br>
</div></div><br>______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://www.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br></blockquote></div><br></div></div>