From 1d29a859bcaaa664aaddda0273d66c15fa0b2928 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Sat, 14 Oct 2023 15:26:40 -0400 Subject: [PATCH] FF Multi Converter: use old installation method to place `data_files` closes https://github.com/Botspot/pi-apps/issues/2464 There will be bigger problems on the next ubuntu/debian releases where python 3.12 is going to be used and the distutils package is entirely removed. --- apps/FF Multi Converter/install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/FF Multi Converter/install b/apps/FF Multi Converter/install index adbf8ce543..a780eb9ded 100755 --- a/apps/FF Multi Converter/install +++ b/apps/FF Multi Converter/install @@ -5,5 +5,13 @@ install_packages python3 python3-pyqt5 python3-distutils ffmpeg imagemagick unoc git_clone https://github.com/ilstam/FF-Multi-Converter || exit 1 cd FF-Multi-Converter || error 'Failed to cd into "FF-Multi-Converter" directory!' -errors="$(sudo python3 setup.py install 2>&1)" || error "Failed to install FF Multi Converter!\nErrors:\n$errors" + +case $__os_codename in +mantic|bookworm) + errors="$(sudo python3 setup.py install --old-and-unmanageable 2>&1)" || error "Failed to install FF Multi Converter!\nErrors:\n$errors" + ;; +*) + errors="$(sudo python3 setup.py install 2>&1)" || error "Failed to install FF Multi Converter!\nErrors:\n$errors" + ;; +esac sudo rm -rf FF-Multi-Converter