From 161fe8ea80aa8565417850ff07885ae37f2e390d Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Tue, 5 Dec 2023 13:35:25 +0100 Subject: [PATCH] deboco now enforces debops update to explicitely python 3.10 This dirty hack allowed the controller to succesfully configure alambix108 fixes https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=3715 --- home/bin/deboco | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/home/bin/deboco b/home/bin/deboco index 6f7f70a..16022dc 100755 --- a/home/bin/deboco +++ b/home/bin/deboco @@ -174,6 +174,20 @@ deboco__init() fi fi + local bug_3715_is_fixed='false' + if [ "$bug_3715_is_fixed" = 'false' ] + then + # make sure that the python version is at least 3.10 so that ansible>=2.15 is installed (as debops 3.1 requires ansible>=2.15) + replace_in_file "$debops_update_script_path" \ + 'virtualenv --quiet -- ' \ + '/usr/bin/python3.10 -m venv ' + if [ $? != "$RETURNCODE_SUCCESS" ] + then + return $RETURNCODE_ERROR + fi + fi + + local virtual_env_path=$(controller__get_virtualenv_path "$debops_controller_path") # no need to call update-debops.sh since update-dev.sh does it DEBOPS_VENV="$virtual_env_path" "$local_repos_path/bin/update-dev.sh"