Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
f73f3afb
Commit
f73f3afb
authored
5 months ago
by
Thibaut ROMAIN
Browse files
Options
Downloads
Patches
Plain Diff
PKG: improve readability for users when first executing otbenv profile
parent
c654126d
No related branches found
Branches containing commit
No related tags found
1 merge request
!528
Support of ITK 5.x in OTB
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Packaging/Files/post_install.sh
+3
-3
3 additions, 3 deletions
Packaging/Files/post_install.sh
Packaging/Files/recompile_bindings.sh
+1
-1
1 addition, 1 deletion
Packaging/Files/recompile_bindings.sh
Packaging/Files/sanitize_rpath.sh
+0
-1
0 additions, 1 deletion
Packaging/Files/sanitize_rpath.sh
with
4 additions
and
5 deletions
Packaging/Files/post_install.sh
+
3
−
3
View file @
f73f3afb
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Packaging/Files/recompile_bindings.sh
+
1
−
1
View file @
f73f3afb
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Packaging/Files/sanitize_rpath.sh
+
0
−
1
View file @
f73f3afb
...
...
@@ -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 *****"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment