<div dir="ltr">I don't know what's the ongoing progress on this topic but I think that a system for the dependencies management should be embedded inside QGIS. I'm not in favour for a plugin to do that.<div>Having an integrated pip would be more transparent to the user and the plugin developers. The developer should only provide a requirements file which should be transparently managed by the QGIS' Python system.</div>
<div>I heard that Nathan is working on something similar?</div><div><br></div><div>giovanni</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-05 11:32 GMT+01:00 Luca Mandolesi <span dir="ltr"><<a href="mailto:mandoluca@gmail.com" target="_blank">mandoluca@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi to all,</div><div>I'm trying to realize a little plugin to install python modules on windows via pip.</div>
<div><br></div><div>In first, I would like make a simple thing:</div>
<div>Run get-pip.py inside the plugin  but I encounter two different problem:</div>
<div><br></div><div>What is the shell to call? (Please, don't mind If I point at dufour, is my qgis crushtest dummy )</div><div><br></div><div>subprocess.call('C:\\PROGRA~2\\QGISDU~1\\Osgeo4W.bat python get-pip.py')</div>


<div><br></div><div>or </div><div><br></div><div>subprocess.call('"C:\Program Files (x86)\QGIS Dufour\OSGeo4W.bat python get-pip.py')</div><div><br></div><div>Apparently they are the same, but if I install something through  python inside one, I cannot import the module inside the other.</div>


<div><br></div><div>So, what's the right way to call inside a python plugin the shell?</div><div><br></div><div>I found also some problems in using subprocess on windows, and I'm developping using QProcess class.</div>


<div><br></div><div>Second question:</div><div>If I run <br></div><div>subprocess.call('"C:\Program Files (x86)\QGIS Dufour\OSGeo4W.bat python get-pip.py')<br></div><div><br></div><div>I receive: Nothing distributions at all found fo install...</div>


<div><br></div><div>So the solution are easy: distribute qgis with pip and easy_install inside, or install pip and easy_intall from shell as I did, then we can use the plugin as you check out in my screenshots:</div><div>


[0]</div><div><br></div><div>So, if you have suggestions plese let me know.</div><div><br></div><div>Best regards</div><div>Luca</div><div><br></div><div><br></div><div>[0]</div><div><a href="https://lh5.googleusercontent.com/-Z6xJHji33E8/UxURKBr1NpI/AAAAAAAADrg/2XWnxf7q6fA/w1075-h604-no/testpipinstaller.PNG" target="_blank">https://lh5.googleusercontent.com/-Z6xJHji33E8/UxURKBr1NpI/AAAAAAAADrg/2XWnxf7q6fA/w1075-h604-no/testpipinstaller.PNG</a><br>


</div><div><br></div><div><br></div></div>
</div><br></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Giovanni Allegri<br>
<a href="http://about.me/giovanniallegri" target="_blank">http://about.me/giovanniallegri</a><div>Twitter: <a href="https://twitter.com/_giohappy_" target="_blank">https://twitter.com/_giohappy_</a></div><div>blog: <a href="http://blog.spaziogis.it" target="_blank">http://blog.spaziogis.it</a><br>
GEO+ geomatica in Italia <a href="http://bit.ly/GEOplus" target="_blank">http://bit.ly/GEOplus</a></div></div>
</div>