Skip to content
Snippets Groups Projects
Commit a73c5d62 authored by Thibaut ROMAIN's avatar Thibaut ROMAIN
Browse files

CI: add correct version number for automatic gdal bindings build

parent c5ff36f5
No related branches found
No related tags found
1 merge request!528Support of ITK 5.x in OTB
Pipeline #16175 failed
......@@ -191,7 +191,7 @@ ubuntu-24-gdal-bindings:
refs:
- /^release-[0-9]+\.[0-9]+$/
script:
- find xdk/lib/python3/dist-packages/osgeo/ -type f -name "*.so" -printf "%P\n" | tar -czf OTB-GDAL-bindings-py312.tar.gz --no-recursion -C xdk/lib/python3/dist-packages/osgeo -T -
- find xdk/lib/python3/dist-packages/osgeo/ -type f -name "*.so" -printf "%P\n" | tar -czf OTB-10.0-GDAL-bindings-py312.tar.gz --no-recursion -C xdk/lib/python3/dist-packages/osgeo -T -
needs:
- job: ubuntu-24-prepare
artifacts: true
......
......@@ -31,7 +31,8 @@ sh "$OTB_INSTALL_DIR"/tools/sanitize_rpath.sh
pyversion="$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]*\).*/\1\2/')"
if [ "$pyversion" = "312" ]; then
echo "*** Python 3.12 detected, downloading gdal bindings compiled for python 3.12 ***"
curl https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-GDAL-bindings-py312.tar.gz -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz
PACKAGE_OTB_VERSION=`ls $OTB_INSTALL_DIR/lib/libOTBCommon.so.*.*.* | egrep -o "[0-9]+\.[0-9]+\.[0-9]$"`
curl https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-$PACKAGE_OTB_VERSION-GDAL-bindings-py312.tar.gz -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz
tar -xf "$OTB_INSTALL_DIR"/tools/py312.tar.gz -C "$OTB_INSTALL_DIR"/lib/python3/dist-packages/osgeo/
rm "$OTB_INSTALL_DIR"/tools/py312.tar.gz
echo "*** GDAL bindings for python 3.12 successfully installed ***"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment