<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Pablo, Tim<br>
<br>
<div class="moz-cite-prefix">On 01/14/2016 10:00 PM, Tim Sutton
wrote:<br>
</div>
<blockquote
cite="mid:9AD22C36-DA5E-499A-AB99-BCCFB75B4F4D@kartoza.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Hi
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 14 Jan 2016, at 18:06, Pablo Fernández
Moniz <<a moz-do-not-send="true"
href="mailto:pablofernandezmoniz@gmail.com" class="">pablofernandezmoniz@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class=""><span style="font-size:13px"
class="">Hi!</span><br class="">
<div class="">
<div style="font-size:13px" class="">
<div class="">
<div class=""><br class="">
</div>
We are currently developing a QGIS plugin were we
wish to generate some Excel files as output. <br
class="">
<br class="">
In order to build the spreadsheet file we need to
use some python modules installed from pip
(openpyxl, xlwt, etc). This dependency will force
every user to manually install the needed package
form the pip repository.<br class="">
<br class="">
</div>
This situation leaves us with the following
question: is possible or it will be in the future to
manage this kind of dependencies from QGIS side when
the user installs the plugin? <br class="">
</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Although it has been discussed and some prototyping was
done to support automatic installation of dependencies at
the last hackfest, there isn’t anything in the released
versions of QGIS to support this yet. If your packages have
no operating system specific binaries in them, then I
suggest to bundle them into your plugin and use an
appropriate import path relative to your code. Note there is
a limit on how big your plugin can be (I think it is 10mb)
so you need to ensure your 3rd party deps do not bulk out
your plugin too much.</div>
</div>
</div>
</blockquote>
<br>
We bundled xlwt and xlrd as .egg with a plugin recently:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/opengisch/shpsync/blob/master/xlwt-1.0.0-py2.7.egg">https://github.com/opengisch/shpsync/blob/master/xlwt-1.0.0-py2.7.egg</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/opengisch/shpsync/blob/master/xlrd-0.9.4-py2.7.egg">https://github.com/opengisch/shpsync/blob/master/xlrd-0.9.4-py2.7.egg</a><br>
<br>
Until there's a cross-platform dependency management (which I know
that several people are looking into) that's the safest road to
follow.<br>
<br>
Best<br>
<br>
Matthias<br>
<br>
<blockquote
cite="mid:9AD22C36-DA5E-499A-AB99-BCCFB75B4F4D@kartoza.com"
type="cite">
<div class="">
<div>
<div><br class="">
</div>
<div>Regards</div>
<div><br class="">
</div>
<div>Tim</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div style="font-size:13px" class=""><br class="">
</div>
<span style="font-size:13px" class=""> Thank you for
your time! </span><br style="font-size:13px"
class="">
<br style="font-size:13px" class="">
<span style="font-size:13px" class=""> Kind regards.</span><br
class="">
</div>
<div class=""><span style="font-size:13px" class=""><br
class="">
</span></div>
-- <br class="">
<div class="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div class=""><br class="">
Pablo Fernández Moniz<br class="">
</div>
GIT Analyst<br class="">
<br class="">
</div>
<a moz-do-not-send="true"
href="http://www.pablofm.com/" target="_blank"
class="">Web</a> <a moz-do-not-send="true"
href="http://www.linkedin.com/in/pablofernandezmoniz/"
target="_blank" class="">Linkedin</a> <a
moz-do-not-send="true"
href="http://www.twitter.com/monizpablo"
target="_blank" class="">Twitter</a><br class="">
</div>
</div>
</div>
_______________________________________________<br
class="">
Qgis-developer mailing list<br class="">
<a moz-do-not-send="true"
href="mailto:Qgis-developer@lists.osgeo.org" class="">Qgis-developer@lists.osgeo.org</a><br
class="">
List info:
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br
class="">
Unsubscribe:
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-align: center;"
class=""><span>—</span></div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; text-align: center;"
class=""><span><br class="">
</span></div>
<span style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br
class="Apple-interchange-newline">
<span><img apple-inline="yes"
id="B1C7F69E-7D41-4474-A576-14B7274904C0"
apple-width="yes" apple-height="yes"
src="cid:part6.04000601.03050903@opengis.ch" class=""
height="66" width="160"></span>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing:
0px; -webkit-text-stroke-width: 0px; text-align: center;"
class=""><br class="Apple-interchange-newline">
<br class="">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing:
0px; -webkit-text-stroke-width: 0px; text-align: center;"
class="">Tim Sutton</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing:
0px; -webkit-text-stroke-width: 0px; text-align: center;"
class=""><br class="">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
normal; orphans: auto; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"
class="">
<div style="text-align: center;" class="">Visit <a
moz-do-not-send="true" href="http://kartoza.com"
class=""><a class="moz-txt-link-freetext" href="http://kartoza.com">http://kartoza.com</a></a> to find out about open
source:</div>
<div style="text-align: center;" class=""><br class="">
</div>
<div class="">
<div style="text-align: center;" class="">* Desktop GIS
programming services</div>
<div style="text-align: center;" class="">* Geospatial
web development</div>
<div style="text-align: center;" class="">* GIS Training</div>
<div style="text-align: center;" class="">* Consulting
Services</div>
<div style="text-align: center;" class=""><br class="">
</div>
<div class="">
<div style="text-align: center;" class="">Skype:
timlinux Irc: timlinux on #qgis at <a
moz-do-not-send="true" href="http://freenode.net"
class="">freenode.net</a></div>
<div style="text-align: center;" class="">Tim is a
member of the QGIS Project Steering Committee</div>
<div style="text-align: center;" class=""><br class="">
</div>
<div style="text-align: center;" class="">Kartoza is a
merger between Linfiniti and Afrispatial</div>
</div>
</div>
</div>
</span></div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Qgis-developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matthias Kuhn
OPENGIS.ch - <a class="moz-txt-link-freetext" href="https://www.opengis.ch">https://www.opengis.ch</a>
Spatial • (Q)GIS • PostGIS • Open Source</pre>
</body>
</html>