diff --git a/Packaging/Files/post_install.sh.in b/Packaging/Files/post_install.sh.in index 92bbf8f43a2486e6fdccbf8a63a932bb7ec7401b..9f847e753c8f0845aa39a76aa81cfce5230a7849 100644 --- a/Packaging/Files/post_install.sh.in +++ b/Packaging/Files/post_install.sh.in @@ -36,7 +36,7 @@ sh "$OTB_INSTALL_DIR"/tools/sanitize_rpath.sh pyversion="$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]*\).*/\1\2/')" ostype="$(lsb_release -is)" # Recompile OTB Python bindings -if [ "$pyversion" -ne "310" ] && [ $ostype -ne "RedHatEnterprise"] ; then +if [ "$pyversion" -ne "310" ] && [ $ostype != "RedHatEnterprise" ] ; then sh "$OTB_INSTALL_DIR"/recompile_bindings.sh fi # Check python version, if python 3.12 (ubuntu 24 and debian > 12) download and extract the gdal bindings for python 3.12