Browse Source

new: [base] add ``debian 12`` compatibility for python

pull/34/head
Valentin Lab 6 months ago
parent
commit
c5de35ead2
  1. 5
      precise/base-0k/hooks/install.d/05-shyaml.sh
  2. 3
      precise/host/hooks/install.d/70-0k.sh

5
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 </dev/null
;;
*)
@ -30,4 +30,5 @@ case $(lsb_release -is) in
;;
esac
pip install shyaml --upgrade
pip install shyaml --upgrade ||
pip install shyaml --upgrade --break-system-packages

3
precise/host/hooks/install.d/70-0k.sh

@ -30,7 +30,8 @@ mkdir -p /opt/apps
if [ "$(python -c 'import setuptools' 2>&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."
(

Loading…
Cancel
Save