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

PKG: improve readability for users when first executing otbenv profile

parent c654126d
No related branches found
No related tags found
1 merge request!528Support of ITK 5.x in OTB
......@@ -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
......@@ -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
......@@ -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 *****"
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