[gdal-dev] Requiring numpy for the Python bindings

Even Rouault even.rouault at spatialys.com
Wed Dec 6 12:01:37 PST 2023


Hi,

cf https://github.com/OSGeo/gdal/pull/8926 for a proposed resolution 
that is hopefully a good-enough compromise. In short, numpy as a *build* 
requirement (if using pip. if you use setuptools directly, you may set 
an env var if you really really don't want to have numpy in your way), 
but an optional runtime dependency.

Even

Le 04/12/2023 à 19:38, Even Rouault via gdal-dev a écrit :
> Hi,
>
> The current situation where numpy is an optional dependency of the 
> GDAL Python bindings is quite cumbersome to deal with our setup.py's 
> setuptools . All details (a bit tricky) in 
> https://github.com/OSGeo/gdal/issues/8069 . It seems it would be 
> simpler if the bindings just required numpy, which is the confugration 
> most people using the bindings likely actually end up using anyway.
>
> Any opposition to that?
>
> Even
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list