Browse Source

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

boris/matomo
Valentin Lab 1 year 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 case $(lsb_release -is) in
Debian) Debian)
case $(lsb_release -rs) in case $(lsb_release -rs) in
11)
11|12)
apt-get install -y python3-pip libyaml-dev python3-dev </dev/null apt-get install -y python3-pip libyaml-dev python3-dev </dev/null
;; ;;
*) *)
@ -30,4 +30,5 @@ case $(lsb_release -is) in
;; ;;
esac 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 if [ "$(python -c 'import setuptools' 2>&1 | tail -n 1)" == "ImportError: No module named setuptools" ]; then
pip install setuptools pip install setuptools
fi 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 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." echo "Error: conflicting installation of zope.interface detected. Trying workaround."
( (

Loading…
Cancel
Save