From c5de35ead2edd2cd77ca4d432ed364926acda9ae Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 25 Oct 2023 10:43:34 +0200 Subject: [PATCH] new: [base] add ``debian 12`` compatibility for python --- precise/base-0k/hooks/install.d/05-shyaml.sh | 5 +++-- precise/host/hooks/install.d/70-0k.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/precise/base-0k/hooks/install.d/05-shyaml.sh b/precise/base-0k/hooks/install.d/05-shyaml.sh index 6116a12..84f7a28 100755 --- a/precise/base-0k/hooks/install.d/05-shyaml.sh +++ b/precise/base-0k/hooks/install.d/05-shyaml.sh @@ -7,7 +7,7 @@ set -eux case $(lsb_release -is) in Debian) case $(lsb_release -rs) in - 11) + 11|12) apt-get install -y python3-pip libyaml-dev python3-dev &1 | tail -n 1)" == "ImportError: No module named setuptools" ]; then pip install setuptools fi - pip install sact.epoch + pip install sact.epoch || + pip install sact.epoch --break-system-packages if [ "$(python -c 'import sact.epoch' 2>&1 | tail -n 1)" == "ImportError: No module named interface" ]; then echo "Error: conflicting installation of zope.interface detected. Trying workaround." (