<div dir="ltr">On Thu, Sep 22, 2016 at 2:37 PM, Akbar Gumbira <span dir="ltr"><<a target="_blank" href="mailto:akbargumbira@gmail.com">akbargumbira@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><p dir="ltr">Hi Matthias,</p>
<p dir="ltr">Is there any pointer to the discussion? If it's possible for me to help, I could may be make a proposal for next year GSoC on this :)</p>
<p dir="ltr"></p></blockquote><div><br></div><div>Nice idea!<br><br></div><div>Please go ahead :)<br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><p dir="ltr">@Jachym: AFAIK, most plugins now just ship the needed libraries along with it or ask the users to install them. There are some libraries that are already shipped into QGIS from the core python plugins (e.g jinja), you might want to check if what you need is there already.</p><div class="gmail-HOEnZb"><div class="gmail-h5">
<div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>A new metadata (external_deps: text) field was introduced for this purpose but there is nothing implemented inside QGIS for now:<br><a href="https://github.com/qgis/QGIS-Django/commit/6546a2ab54fd01b6e94b921b610c31b619e99979#diff-536e872043014a84818f87dc640b2d4d">https://github.com/qgis/QGIS-Django/commit/6546a2ab54fd01b6e94b921b610c31b619e99979#diff-536e872043014a84818f87dc640b2d4d</a><br><br></div><div>A common pattern seems shipping dependencies with the plugin as Python eggs.<br><br></div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><div class="gmail_quote">On Sep 22, 2016 19:14, "Matthias Kuhn" <<a target="_blank" href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>> wrote:<br type="attribution"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Hi Jachym,<br>
<br>
Unfortunately not. This has been discussed and is something that will<br>
certainly be added at some point but so far nobody implemented it<br>
(basically because of its cross-platform nature I think).<br>
<br>
Your possibilities are:<br>
<br>
 * Document and print nice warnings<br>
 * Ship the dependency packaged with your plugin<br>
 * Fix it by adding dependency management in QGIS<br>
<br>
Cheers<br>
Matthias<br>
<br>
On 09/22/2016 02:08 PM, Jachym Cepicky wrote:<br>
> Hi all,<br>
><br>
> we've developed an (python) plugin for QGIS, which is somehow using<br>
> (among others) nice "requests" python library. We use it the standard way<br>
><br>
> import requests<br>
><br>
> But when we distributed the plugin to other computers, it turned out,<br>
> they do not have it installed.<br>
><br>
> Is there any standard way, how to distribute dependencies along with<br>
> python plugin? Something in metadata.txt? Some requirements file?<br>
><br>
> Thanks<br>
><br>
> Jachym<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> Qgis-developer mailing list<br>
> <a target="_blank" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a><br>
> Unsubscribe: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a><br>
><br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a target="_blank" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a><br>
Unsubscribe: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman<wbr>/listinfo/qgis-developer</a></blockquote></div></div>
</div></div><br>______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a target="_blank" rel="noreferrer" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a target="_blank" href="http://www.itopen.it">www.itopen.it</a></div>
</div></div>