<div dir="ltr"><div>For what it's worth, Rasterio has required Numpy for a few versions, and there's never been a single complaint about it. The footprint and extra complexity of numpy is just a drop in the bucket.</div><div><br></div><div>I suppose that someone using only the OGR parts of the Python bindings might be inconvenienced, but not by much. And I suspect that the number of these people who don't already have Numpy in their environment via GeoPandas or Shapely is pretty small.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 4, 2023 at 3:52 PM Daniel Evans 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">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"><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" rel="noreferrer" target="_blank">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>
</blockquote></div></div></blockquote></div></div></div></blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Sean Gillies</div></div>