<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="zoom: 0%;">
<div dir="auto">Hi Tobias,<br>
<br>
</div>
<div dir="auto">Reads like a good idea!<br>
<br>
</div>
<div dir="auto">And there is code, we already can use:<br>
<br>
</div>
<div dir="auto"><a href="https://github.com/maphew/apt">https://github.com/maphew/apt</a><br>
</div>
<div dir="auto">It is still in python2, but does update, installs etc. in the same way the installer does.<br>
<br>
</div>
<div dir="auto">Another approach: using osgeo4w-setup.exe by its command line<br>
<br>
</div>
<div dir="auto">My spontanous thoughts: how can a plugin developer check, which packages are missing? A processing script or calling another plugin?<br>
</div>
<div dir="auto">Then embed apt or call setup to manage dependencies...<br>
<br>
</div>
<div dir="auto">What do you think?<br>
<br>
</div>
<div dir="auto"><!-- tmjah_g_1299s -->Dr. Andreas Müller, FB VI, Kartographie<!-- tmjah_g_1299e --></div>
<div class="gmail_quote">Am 20. Sep. 2019, um 18:37, Tobias Wendorff <<a href="mailto:tobias.wendorff@tu-dortmund.de" target="_blank">tobias.wendorff@tu-dortmund.de</a>> schrieb:
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Hi there,<br><br>sorry for the cross-post, but I believe, that both sides should work<br>together on this issue.<br><br>When installing QGIS on Windows the normal way (which doesn't need<br>the user get to know about all those expert settings and libraries),<br>you'll quickly run into the problem of missing Python libraries when<br>installing a plugin. Numpy, SciPy or mathlib are the most common<br>ones, but there's also well know ones, which can't get installed<br>automatically on Windows.<br><br>Perhaps we should setup rules for plugin developers to inform OSGeo4W,<br>which plugins might be required. Perhaps we should just "grep" through<br>all the repositories and find all the imports?<br><br>But even then, QGIS on Windows doesn't automatically install the missing<br>libraries. And even if QGIS would do (setuptools, pip, whatever), the<br>OSGeo4W-install would lose track about this and we even might get into<br>version chaos.<br><br>So we need a bi-directional way between QGIS and OSGeo4W installer.<br>Perhaps QGIS (or an additional QGIS plugin, hehe) could trigger<br>OSGeo4W installer silently to download the packages needed. So it might<br>keep track of it.<br><br>Right now, it's often hard work, since not all the libraries needed<br>have been added to OSGeo4W. Sure, the girls & guys do their best work<br>to add the missing libs upon request, but even then, you need to be<br>aware, WHICH plugin you need and you need to install it outside of<br>QGIS (at best practice, even BEFORE the installation in QGIS stars<br>because it might make QGIS instable, crash or both).<br><br>How can I help?<br><br>Best regards,<br>Tobias<br><br><hr><br>osgeo4w-dev mailing list<br>osgeo4w-dev@lists.osgeo.org<br><a href="https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev">https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev</a></pre>
</blockquote>
</div>
</body>
</html>