<div dir="ltr">Ola Victor ! :)<br><div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-07 17:50 GMT+02:00 Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">At the moment, you have to ship them with your plugin, in the plugin<br>
zip file. If the lib uses native code, you will need to include<br>
binaries for all OSs that you want to support, and the corresponding<br>
mechanism to pick one or the other.<br>
<br>
As an example, you can see how it is done in this plugin<br>
<br>
<a href="https://github.com/boundlessgeo/qgis-geoserver-plugin/blob/master/src/geoserverexplorer/__init__.py" rel="noreferrer" target="_blank">https://github.com/boundlessgeo/qgis-geoserver-plugin/blob/master/src/geoserverexplorer/__init__.py</a><br>
<br>
Dependencies are stored in a folder called "ext-libs", which is added<br>
to the python path by the plugin<br>
<br>
Notice that that folder is not in the repo, there is a paver task to<br>
fetch the dependencies from PyPi<br>
<br>
Notice also that QGIS has its folder with python libs<br>
<br>
<a href="https://github.com/qgis/QGIS/tree/master/python/ext-libs" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/tree/master/python/ext-libs</a><br>
<br>
Make sure that the libs you require are not already in there</blockquote><div><br><br></div><div>In my case ( GEarthView QGIS plugin ) I have two external libraries:<br><br></div><div>twisted<br></div><div>zope<br><br><br></div><div>that I need to install manually :( <br><br></div><div>On windows, they need to be copied for each new version of QGIS, inside the folder:<br><br>QGIS VERSION\apps\Python27\Lib\site-packages\<br><br><br></div><div>Instead, on MacOSX, they are (<span id="result_box" class="" lang="en"><span class="">once and for all</span></span>) inside the standard python library folder, as I explained in my blog:<br></div><div><br><a href="http://exporttocanoma.blogspot.it/2015/01/gearthview-20-plugin-per-qgis.html">http://exporttocanoma.blogspot.it/2015/01/gearthview-20-plugin-per-qgis.html</a> <br><br><br></div><div><span id="result_box" class="" lang="en"><span class="">I have</span> <span class="">tried several times</span> <span class="">to</span> <span class="">make sure that</span> <span class="">it was not necessary</span> <span class="">to install anything</span><span>,</span> <span class="">including</span> <span class="">the libraries</span> <span class="">in my</span> <span class="">plugins</span><span>,</span> <span class="">so far</span> <span class="">I have not succeeded</span><span class="">. </span></span><span id="result_box" class="" lang="en"><span class="">So</span><span>,</span> <span class="">that</span> <span class="">your</span> <span class="">message</span> <span class="">has rekindled</span> <span class="">my hopes :) </span></span><span id="result_box" class="" lang="en"><span class="">but</span> <span class="">there are some things</span> <span class="">I do not understand</span><span>,</span> <span class="">in your</span> <span class="">explanation (</span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">my fault</span></span>).<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">Here are my steps:<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">1) I modified my geodrinx/__init__.py adding:<br><br></span></span></div><div><span id="result_box" class="" lang="en"><span class="">site.addsitedir(os.path.abspath(os.path.dirname(__file__) + '/ext-libs'))<br></span></span></div><div><br></div><div>Question: where need I to create this <span id="result_box" class="" lang="en"><span class="">ext-libs folder ? </span></span><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">I looked into the</span> <span class="">plugin</span> <span class="">that you indicate</span><span>,</span> <span class="">but</span> <span class="">I found no</span> <span class="">"</span><span>ext</span><span class="">-</span><span>libs</span><span>"</span> <span class="">folder.<br><br></span></span></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">Could you please explain me (us) better ?<br><br><br></span></span></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">Thank you much<br><br></span></span></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">A presto<br><br></span></span></span></span></div><div><span id="result_box" class="" lang="en"><span class=""><span id="result_box" class="" lang="en"><span class="">Roberto<br></span></span> </span></span></div><div><br></div></div></div></div></div>