Re: [QGIS-Developer] Additional python modules
On Sat, 25 Feb 2023, 1:24 am Yoann Quenach de Quivillic via QGIS-Developer, wrote: > Hello everyone, > > I'm working on a new feature targeting 3.32 to reformat code written in > the Python Console Editor : https://github.com/qgis/QGIS/pull/51733. It > works great, but it requires additional python packages to be installed > (namely black / autopep8 / isort). > > *Is there a reliable cross platform way we can use to distribute > additional python packages alongside QGIS? * > > I could rewrite my PR to enable this feature only if the required modules > are installed, but it seems kind of a shame... An alternative would be, as > discussed in ( > https://github.com/qgis/QGIS/pull/51733#issuecomment-1434646910) to > provide the end user a way to dynamically install modules as needed. > Black is a rather heavy library to add as a mandatory dependency, and it's not safe to assume it's always available everywhere (eg last I checked it's not available through the Fedora repos). I think leaving the conditional checks is needed, but its definitely it's worth exploring if the dependencies can be added to the default windows install... Nyall > Any thoughts? > Thanks, > > *--* > *Yoann Quenach de Quivillic * > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Additional python modules
Hi, last time I checked there wasn't, mainly because the PIP API wasn't exposed. The standard way to go is ask Juergen to add the packages you need to the QGIS package recipes. On Fri, Feb 24, 2023 at 4:24 PM Yoann Quenach de Quivillic via QGIS-Developer wrote: > > Hello everyone, > > I'm working on a new feature targeting 3.32 to reformat code written in the > Python Console Editor : https://github.com/qgis/QGIS/pull/51733. It works > great, but it requires additional python packages to be installed (namely > black / autopep8 / isort). > > Is there a reliable cross platform way we can use to distribute additional > python packages alongside QGIS? > > I could rewrite my PR to enable this feature only if the required modules are > installed, but it seems kind of a shame... An alternative would be, as > discussed in > (https://github.com/qgis/QGIS/pull/51733#issuecomment-1434646910) to provide > the end user a way to dynamically install modules as needed. > > Any thoughts? > Thanks, > > -- > Yoann Quenach de Quivillic > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- Alessandro Pasotti QCooperative: www.qcooperative.net ItOpen: www.itopen.it ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Additional python modules
Hello everyone, I'm working on a new feature targeting 3.32 to reformat code written in the Python Console Editor : https://github.com/qgis/QGIS/pull/51733. It works great, but it requires additional python packages to be installed (namely black / autopep8 / isort). *Is there a reliable cross platform way we can use to distribute additional python packages alongside QGIS? * I could rewrite my PR to enable this feature only if the required modules are installed, but it seems kind of a shame... An alternative would be, as discussed in ( https://github.com/qgis/QGIS/pull/51733#issuecomment-1434646910) to provide the end user a way to dynamically install modules as needed. Any thoughts? Thanks, *--* *Yoann Quenach de Quivillic * ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer