<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 25 Feb 2023, 1:24 am Yoann Quenach de Quivillic via QGIS-Developer, <<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I'm working on a new feature targeting 3.32 to reformat code written in the Python Console Editor : <a href="https://github.com/qgis/QGIS/pull/51733" target="_blank" rel="noreferrer">https://github.com/qgis/QGIS/pull/51733</a>. It works great, but it requires additional python packages to be installed (namely black / autopep8 / isort). </div><div><br></div><div><b>Is there a reliable cross platform way we can use to distribute additional python packages alongside QGIS? </b></div><div><br></div><div>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 (<a href="https://github.com/qgis/QGIS/pull/51733#issuecomment-1434646910" target="_blank" rel="noreferrer">https://github.com/qgis/QGIS/pull/51733#issuecomment-1434646910</a>) to provide the end user a way to dynamically install modules as needed.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">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). </div><div dir="auto"><br></div><div dir="auto">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...</div><div dir="auto"><br></div><div dir="auto">Nyall</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Any thoughts?</div><div>Thanks,</div><div><br></div><div><b>--</b></div><div><b>Yoann Quenach de Quivillic  </b></div></div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div></div></div>