33# Ensure the DEBIAN_FRONTEND environment variable is set for apt-get calls
44APT_GET=" env DEBIAN_FRONTEND=noninteractive $( command -v apt-get) "
55
6- check_version (){
6+ check_version (){
77 UBUNTU_VERSION=$( lsb_release -r)
88 case " $UBUNTU_VERSION " in
99 * " 20.04" * |* " 21.04" * |* " 24.04" * )
@@ -107,15 +107,15 @@ installruntimedepsonly() {
107107
108108installreqs () {
109109 cd /code
110-
110+
111111 # # Set up library paths
112112 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$RUNPATH /SuperBuild/install/lib
113113
114114 # # Before installing
115115 echo " Updating the system"
116116 ensure_prereqs
117117 check_version
118-
118+
119119 echo " Installing Required Requisites"
120120 installdepsfromsnapcraft build prereqs
121121 echo " Installing OpenCV Dependencies"
@@ -126,7 +126,7 @@ installreqs() {
126126 installdepsfromsnapcraft build openmvs
127127 echo " Installing GDAL Dependencies"
128128 installdepsfromsnapcraft build gdal
129-
129+
130130 set -e
131131
132132 # edt requires numpy to build
@@ -135,15 +135,13 @@ installreqs() {
135135}
136136
137137installpython () {
138- echo " Installing Python requirements with compiled GDAL "
138+ echo " Installing Python requirements"
139139 cd /code
140- export GDAL_CONFIG=${RUNPATH} /SuperBuild/install/bin/gdal-config
141-
142140 set -e
143141 venv/bin/pip install -r requirements.txt --ignore-installed
144142 set +e
145143}
146-
144+
147145install () {
148146 installreqs
149147
@@ -160,15 +158,10 @@ install() {
160158 fi
161159
162160 set -eo pipefail
163-
164161 echo " Compiling SuperBuild"
165162 cd ${RUNPATH} /SuperBuild
166163 mkdir -p build && cd build
167- cmake .. \
168- -DBUILD_PYTHON_BINDINGS=ON \
169- -DPython_ROOT=/code/venv \
170- -DPython_FIND_VIRTUALENV=ONLY \
171- && make -j$processes
164+ cmake .. && make -j$processes
172165
173166 # Reset terminal state
174167 cd ${RUNPATH}
@@ -178,7 +171,7 @@ install() {
178171
179172 echo " Configuration Finished"
180173}
181-
174+
182175uninstall () {
183176 check_version
184177
0 commit comments