[gdal-dev] gdal docker with numpy2-compatible python bindings

Even Rouault even.rouault at spatialys.com
Fri Jul 12 07:26:14 PDT 2024


Hi,
> I hoped that the python bindings in the docker image would be 
> compatible with both numpy 1 and 2, but apparently they're not? Would 
> it be possible to create docker images with bindings that are 
> compatible with numpy2? Or would you rather wait until the official 
> ubuntu numpy package moves to 2.0?

That seems reasonable at first sight (although I'm not totally sure what 
would happen if you would install and use in the same process other 
python modules built against numpy 1.x. I assume this works?). If you 
want to contribute that improvement, I guess this is mostly a matter of 
pip install numpy==2.0.0 in the builder image before building GDAL

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240712/f357e195/attachment.htm>


More information about the gdal-dev mailing list