-
Notifications
You must be signed in to change notification settings - Fork 24
Pv/gdal 3.10 #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Pv/gdal 3.10 #89
Conversation
thanks @philvarner really appreciate your time on this. I won't have a lot of time to spend on this but I'll try my best 🙏 |
@vincentsarago thanks! I'm mostly looking for support for Python 3.13 right now. Can you tag master to trigger the build and push of the new images for the newer Python versions? GDAL 3.9 and 3.10 are failing to build, so that will require more investigation, and I don't think I'll be able to do that soon. |
@vincentsarago after further work, I'm not certain the python 3.11 and 3.12 images are going to work. The docker containers for these use al2023 instead of al2, which is why the builds use dnf instead of yum. I don't know if all of the packages built on al2 will work in al2023, so we should test this thoroughly -- which I doubt either of us has time for right now :( |
Hi there! My team is currently building GDAL 3.11 with numpy 2.3.2 on AL2023. We're doing it for Docker container Lambdas, but I'm considering moving back to a Lambda layer for GDAL at some point if it's feasible. We're currently using the following in our Dockerfile to build GDAL: ARG PYTHON_VERSION=3.13
FROM public.ecr.aws/lambda/python:${PYTHON_VERSION}
# important system deps:
# - gdal (via extra packages for enterprise linux)
# - c++ compiler (for numpy)
RUN dnf update -y && \
dnf install -y gcc gcc-c++ wget cmake proj-devel sqlite-devel tar libcurl-devel libtiff-devel libpng-devel libjpeg-devel libxml2-devel zlib-devel pkgconfig && \
dnf clean all
# build gdal from source
RUN wget https://github.com/OSGeo/gdal/releases/download/v3.11.0/gdal-3.11.0.tar.gz && \
tar -xzf gdal-3.11.0.tar.gz && \
cd gdal-3.11.0 && \
mkdir build && cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX=/usr && \
make -j$(nproc) && \
make install && \
cd ../.. && rm -rf gdal-3.11.0*
# [... other parts of our docker build]
# make GDAL available at runtime
ENV LD_LIBRARY_PATH="/usr/lib:/usr/lib64:$LD_LIBRARY_PATH" Not sure if this is where you're blocked or if this will help, but if it does, great! We'd certainly be interested in getting off Docker if we could, so your layers would be super helpful (but I'm not sure we can go back to Numpy 1.x!) 😊 |
Few issues currently:
instead of