Hi Luca,

You could parse the gdal config version output into an environment variable and then specify the version in requirements.txt like this:
GDAL==${GDAL_VERSION}

Cheers,
Stefan
On 26/09/2023, 08:55 Luca Delucchi via gdal-dev <[email protected]> wrote:
Hi everyone,

I would like to know if it is possible to set GDAL version in the pip
requirements file using gdal-config of the machine running the
installation, I tried some different ways but I was not able to do it,
also leaving GDAL without any specified version doesn't work because
it takes the last python GDAL version available in that system.

Do you have any advice?


--
ciao
Luca

www.lucadelu.org
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to