[QGIS-Developer] Additional python modules

Nyall Dawson nyall.dawson at gmail.com
Fri Feb 24 17:24:21 PST 2023


On Sat, 25 Feb 2023, 1:24 am Yoann Quenach de Quivillic via QGIS-Developer,
<qgis-developer at lists.osgeo.org> 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 at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20230225/15fe2f76/attachment.htm>


More information about the QGIS-Developer mailing list