@@ -114,6 +114,11 @@ elif [ ${RELEASE_CODENAME} == 'mantic' ]; then
114
114
SITLCFML_VERSION=" 2.5"
115
115
PYTHON_V=" python3"
116
116
PIP=pip3
117
+ elif [ ${RELEASE_CODENAME} == ' noble' ]; then
118
+ SITLFML_VERSION=" 2.6"
119
+ SITLCFML_VERSION=" 2.6"
120
+ PYTHON_V=" python3"
121
+ PIP=pip3
117
122
elif [ ${RELEASE_CODENAME} == ' groovy' ] ||
118
123
[ ${RELEASE_CODENAME} == ' bullseye' ]; then
119
124
SITLFML_VERSION=" 2.5"
@@ -169,7 +174,8 @@ ARM_LINUX_PKGS="g++-arm-linux-gnueabihf $INSTALL_PKG_CONFIG"
169
174
170
175
if [ ${RELEASE_CODENAME} == ' bookworm' ] ||
171
176
[ ${RELEASE_CODENAME} == ' lunar' ] ||
172
- [ ${RELEASE_CODENAME} == ' mantic' ]; then
177
+ [ ${RELEASE_CODENAME} == ' mantic' ] ||
178
+ [ ${RELEASE_CODENAME} == ' noble' ]; then
173
179
# on Lunar (and presumably later releases), we install in venv, below
174
180
PYTHON_PKGS+=" numpy pyparsing psutil"
175
181
SITL_PKGS=" python3-dev"
181
187
if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
182
188
if [ ${RELEASE_CODENAME} == ' bookworm' ] ||
183
189
[ ${RELEASE_CODENAME} == ' lunar' ] ||
184
- [ ${RELEASE_CODENAME} == ' mantic' ]; then
190
+ [ ${RELEASE_CODENAME} == ' mantic' ] ||
191
+ [ ${RELEASE_CODENAME} == ' noble' ]; then
185
192
PYTHON_PKGS+=" matplotlib scipy opencv-python pyyaml"
186
193
SITL_PKGS+=" xterm libcsfml-dev libcsfml-audio${SITLCFML_VERSION} libcsfml-dev libcsfml-graphics${SITLCFML_VERSION} libcsfml-network${SITLCFML_VERSION} libcsfml-system${SITLCFML_VERSION} libcsfml-window${SITLCFML_VERSION} libsfml-audio${SITLFML_VERSION} libsfml-dev libsfml-graphics${SITLFML_VERSION} libsfml-network${SITLFML_VERSION} libsfml-system${SITLFML_VERSION} libsfml-window${SITLFML_VERSION} "
187
194
else
@@ -274,7 +281,8 @@ elif [ ${RELEASE_CODENAME} == 'lunar' ]; then
274
281
SITL_PKGS+=" libpython3-stdlib" # for argparse
275
282
elif [ ${RELEASE_CODENAME} == ' buster' ]; then
276
283
SITL_PKGS+=" libpython3-stdlib" # for argparse
277
- elif [ ${RELEASE_CODENAME} != ' mantic' ]; then
284
+ elif [ ${RELEASE_CODENAME} != ' mantic' ] &&
285
+ [ ${RELEASE_CODENAME} != ' noble' ]; then
278
286
SITL_PKGS+=" python-argparse"
279
287
fi
280
288
@@ -293,6 +301,9 @@ if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
293
301
elif [ ${RELEASE_CODENAME} == ' mantic' ]; then
294
302
SITL_PKGS+=" libgtk-3-dev libwxgtk3.2-dev "
295
303
# see below
304
+ elif [ ${RELEASE_CODENAME} == ' noble' ]; then
305
+ SITL_PKGS+=" libgtk-3-dev libwxgtk3.2-dev "
306
+ # see below
296
307
elif apt-cache search python-wxgtk3.0 | grep wx; then
297
308
SITL_PKGS+=" python-wxgtk3.0"
298
309
elif apt-cache search python3-wxgtk4.0 | grep wx; then
@@ -312,7 +323,8 @@ if [[ $SKIP_AP_GRAPHIC_ENV -ne 1 ]]; then
312
323
PYTHON_PKGS+=" wxpython opencv-python"
313
324
SITL_PKGS+=" python3-wxgtk4.0"
314
325
SITL_PKGS+=" fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev" # for pygame
315
- elif [ ${RELEASE_CODENAME} == ' mantic' ]; then
326
+ elif [ ${RELEASE_CODENAME} == ' mantic' ] ||
327
+ [ ${RELEASE_CODENAME} == ' noble' ]; then
316
328
PYTHON_PKGS+=" wxpython opencv-python"
317
329
SITL_PKGS+=" python3-wxgtk4.0"
318
330
SITL_PKGS+=" fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev" # for pygame
360
372
PIP_USER_ARGUMENT=" --user"
361
373
362
374
# create a Python venv on more recent releases:
375
+ PYTHON_VENV_PACKAGE=" "
363
376
if [ ${RELEASE_CODENAME} == ' bookworm' ] ||
364
377
[ ${RELEASE_CODENAME} == ' lunar' ] ||
365
378
[ ${RELEASE_CODENAME} == ' mantic' ]; then
366
- $APT_GET install python3.11-venv
379
+ PYTHON_VENV_PACKAGE=python3.11-venv
380
+ elif [ ${RELEASE_CODENAME} == ' noble' ]; then
381
+ PYTHON_VENV_PACKAGE=python3.12-venv
382
+ fi
383
+
384
+ if [ -n " $PYTHON_VENV_PACKAGE " ]; then
385
+ $APT_GET install $PYTHON_VENV_PACKAGE
367
386
python3 -m venv $HOME /venv-ardupilot
368
387
369
388
# activate it:
389
408
390
409
if [ ${RELEASE_CODENAME} == ' bookworm' ] ||
391
410
[ ${RELEASE_CODENAME} == ' lunar' ] ||
392
- [ ${RELEASE_CODENAME} == ' mantic' ]; then
411
+ [ ${RELEASE_CODENAME} == ' mantic' ] ||
412
+ [ ${RELEASE_CODENAME} == ' noble' ]; then
393
413
# must do this ahead of wxPython pip3 run :-/
394
414
$PIP install $PIP_USER_ARGUMENT -U attrdict3
395
415
fi
0 commit comments