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
Gaëlle USSEGLIO
otb
Commits
73b2b24a
Commit
73b2b24a
authored
8 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
PKG: need more strict checking python version
parent
fbc4a0f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SuperBuild/Packaging/Files/linux_pkgsetup.in
+11
-2
11 additions, 2 deletions
SuperBuild/Packaging/Files/linux_pkgsetup.in
with
11 additions
and
2 deletions
SuperBuild/Packaging/Files/linux_pkgsetup.in
+
11
−
2
View file @
73b2b24a
...
@@ -115,13 +115,22 @@ python_minor_version=$($OTB_PYTHON_EXE -c "import sys;print(sys.version_info[1])
...
@@ -115,13 +115,22 @@ python_minor_version=$($OTB_PYTHON_EXE -c "import sys;print(sys.version_info[1])
python_patch_version
=
$(
$OTB_PYTHON_EXE
-c
"import sys;print(sys.version_info[2])"
)
python_patch_version
=
$(
$OTB_PYTHON_EXE
-c
"import sys;print(sys.version_info[2])"
)
python_version
=
"
$python_major_version
.
$python_minor_version
.
$python_patch_version
"
python_version
=
"
$python_major_version
.
$python_minor_version
.
$python_patch_version
"
if
[
"
$python_major_version
"
-gt
2
]
;
then
python_check_failed
()
{
printf
%s
\\
n
"*****Error occured during installation******"
printf
%s
\\
n
"OTB python bindings requires python2.6 or python2.7 but current detected python version is
$python_version
"
printf
%s
\\
n
"OTB python bindings requires python2.6 or python2.7 but current detected python version is
$python_version
"
printf
%s
\\
n
"If you have python2.6 or Python2.7 installed in your system "
printf
%s
\\
n
"If you have python2.6 or Python2.7 installed in your system "
printf
%s
\\
n
"You should set OTB_PYTHON_EXE and re-run this installation script."
printf
%s
\\
n
"You should set OTB_PYTHON_EXE and re-run this installation script."
printf
%s
\\
n
"eg: OTB_PYTHON_EXE=/path/to/python2.7 ./OTB-X.Y-Linux64.run"
printf
%s
\\
n
"eg: OTB_PYTHON_EXE=/path/to/python2.7 ./OTB-X.Y-Linux64.run"
exit
0
;
exit
1
;
}
if
[
"
$python_major_version
"
-gt
2
]
;
then
python_check_failed
fi
fi
if
[
"
$python_minor_version
"
-lt
5
]
;
then
python_check_failed
fi
python_INSTSONAME
=
$(
$OTB_PYTHON_EXE
-c
"import sys; from distutils import sysconfig; print (sysconfig.get_config_var('INSTSONAME'));"
)
python_INSTSONAME
=
$(
$OTB_PYTHON_EXE
-c
"import sys; from distutils import sysconfig; print (sysconfig.get_config_var('INSTSONAME'));"
)
python_lib_dirs
=
"/usr/lib /usr/lib64 /usr/lib/x86_64-linux-gnu"
python_lib_dirs
=
"/usr/lib /usr/lib64 /usr/lib/x86_64-linux-gnu"
...
...
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