diff --git a/Packaging/Files/post_install.sh b/Packaging/Files/post_install.sh index 7063861a3a9f236cc4faeaf96b0e8d92135fe6fb..9df122c1ca8831baaf34a4fb7e06ca8efc5bd184 100644 --- a/Packaging/Files/post_install.sh +++ b/Packaging/Files/post_install.sh @@ -30,7 +30,7 @@ sh "$OTB_INSTALL_DIR"/tools/sanitize_rpath.sh # Check python version, if python 3.12 (ubuntu 24 and debian 13) download and extract the gdal bindings for python 3.12 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 ***" + echo "***** Python 3.12 detected, downloading gdal bindings compiled for python 3.12 *****" PACKAGE_OTB_VERSION=`ls $OTB_INSTALL_DIR/lib/libOTBCommon.so.*.*.* | egrep -o "[0-9]+\.[0-9]+\.[0-9]$"` HTTP_STATUS=$(curl -s -o "$OTB_INSTALL_DIR"/tools/py312.tar.gz -w "%{response_code}\n" https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-9.1-GDAL-bindings-py$pyversion.tar.gz) if [ $HTTP_STATUS -eq 200 ]; then @@ -40,7 +40,7 @@ if [ "$pyversion" = "312" ]; then echo "Can not find GDAL bindings at https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-9.1-GDAL-bindings-py$pyversion.tar.gz" return -1 fi - echo "***** Environment and GDAL Python bindings setup complete *****" - echo "***** If you have not done it yet, consider recompiling OTB python bindings for python 3.12 before using the bindings ****" + sh "$OTB_INSTALL_DIR"/recompile_bindings.sh + echo "***** OTB Environment and Python bindings setup complete *****" fi echo "OK" > "$OTB_INSTALL_DIR"/tools/install_done.txt \ No newline at end of file diff --git a/Packaging/Files/recompile_bindings.sh b/Packaging/Files/recompile_bindings.sh index dec39dfe631d50e5c8cc2ab4de41302d1fc5bb3a..312b73b4676c305c0e3e9d0bb0f71cf974655a62 100644 --- a/Packaging/Files/recompile_bindings.sh +++ b/Packaging/Files/recompile_bindings.sh @@ -19,5 +19,5 @@ # limitations under the License. # detected_pyversion="$(python3 -V 2>&1)" -echo "************ Recompiling OTB python bindings with $detected_pyversion ************" +echo "***** Recompiling OTB python bindings with $detected_pyversion *****" ctest -S "$OTB_INSTALL_DIR/share/otb/swig/build_wrapping.cmake" -V diff --git a/Packaging/Files/sanitize_rpath.sh b/Packaging/Files/sanitize_rpath.sh index aee79e31b21554f231f901d0cce25b45531aca4b..19e32e53de2d18dbd696e317a7af49168c9d909e 100644 --- a/Packaging/Files/sanitize_rpath.sh +++ b/Packaging/Files/sanitize_rpath.sh @@ -26,4 +26,3 @@ for bin_file in $BINARY_FILES; do $OTB_INSTALL_DIR/bin/patchelf "--set-rpath" "$OTB_INSTALL_DIR/lib" $bin_file fi done -echo "***** OTB installation is complete *****"