<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/vnd.ui.insecure+html;charset=utf-8">
</head>
<body style="overflow-wrap:break-word; word-break: break-word;"><div class="mail_android_message" style="line-height: 1; padding: 0.5em">Hi Luca,<br/><br/>You could parse the gdal config version output into an environment variable and then specify the version in <a href="http://requirements.txt">requirements.txt</a> like this:<br/>GDAL==${GDAL_VERSION}<br/><br/>Cheers,<br/>Stefan<br/></div><div class="mail_android_quote" style="line-height: 1; padding: 0.3em"><html><body>On 26/09/2023, 08:55 Luca Delucchi via gdal-dev <gdal-dev@lists.osgeo.org> wrote:</body></html><blockquote class="gmail_quote" style="margin: 0.8ex 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi everyone,
<br>
<br> I would like to know if it is possible to set GDAL version in the pip
<br> requirements file using gdal-config of the machine running the
<br> installation, I tried some different ways but I was not able to do it,
<br> also leaving GDAL without any specified version doesn't work because
<br> it takes the last python GDAL version available in that system.
<br>
<br> Do you have any advice?
<br>
<br>
<br> --
<br> ciao
<br> Luca
<br>
<br> <a href="http://www.lucadelu.org">www.lucadelu.org</a>
<br> _______________________________________________
<br> gdal-dev mailing list
<br> gdal-dev@lists.osgeo.org
<br> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
<br>
</blockquote></div></body>
</html>