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