forked from 0k/0k-charms
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
797 B
33 lines
797 B
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
## For shyaml
|
|
|
|
case $(lsb_release -is) in
|
|
Debian)
|
|
case $(lsb_release -rs) in
|
|
11)
|
|
apt-get install -y python3-pip libyaml-dev python3-dev </dev/null
|
|
;;
|
|
*)
|
|
apt-get install -y python-pip libyaml-dev python-dev </dev/null
|
|
;;
|
|
esac
|
|
;;
|
|
Ubuntu)
|
|
case $(lsb_release -rs) in
|
|
22.04)
|
|
apt-get install -y python3-pip libyaml-dev python3-dev </dev/null
|
|
;;
|
|
*)
|
|
apt-get install -y python-pip libyaml-dev python-dev </dev/null
|
|
;;
|
|
esac
|
|
;;
|
|
*)
|
|
apt-get install -y python-pip libyaml-dev python-dev </dev/null
|
|
;;
|
|
esac
|
|
|
|
pip install shyaml --upgrade
|