<div dir="auto"><div>Agree with Kurt - it's always struck me as a little surprising that it was optional. There's also not very much of a Python stack you can build that involves GDAL but doesn't pull in Numpy through another dependency, as Even said.</div><div dir="auto"><br></div><div dir="auto">I would've thought that in any constrained environment where GDAL is required, but Numpy is too much of a overhead, that using Python would be a somewhat unusual choice to go with over the many other bindings that GDAL offers. </div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Daniel</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, 4 Dec 2023, 18:50 Kurt Schwehr via gdal-dev, <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@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"><div dir="ltr">I lean towards just requiring numpy. It's super common and once a system brings in gdal python, it can't be a super constrained env where keeping things really small is critical. Just requiring numpy simplifies a number of aspects.</div><div dir="ltr"><br></div><div>I think the setup.py topic as a whole is somewhat separate.l. So whichever way the numpy dep goes (required or optional), switching to pyproject.toml seems important. I'm fairly new to pyproject.toml, so I might be missing something.</div><div><br></div><div>-Kurt</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 4, 2023 at 10:38 AM Even Rouault via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
The current situation where numpy is an optional dependency of the GDAL <br>
Python bindings is quite cumbersome to deal with our setup.py's <br>
setuptools . All details (a bit tricky) in <br>
<a href="https://github.com/OSGeo/gdal/issues/8069" rel="noreferrer noreferrer" target="_blank">https://github.com/OSGeo/gdal/issues/8069</a> . It seems it would be simpler <br>
if the bindings just required numpy, which is the confugration most <br>
people using the bindings likely actually end up using anyway.<br>
<br>
Any opposition to that?<br>
<br>
Even<br>
<br>
-- <br>
<a href="http://www.spatialys.com" rel="noreferrer noreferrer" target="_blank">http://www.spatialys.com</a><br>
My software is free, but my time generally not.<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div></div></div>