Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shyaml Ubuntu 24 fixes #2740

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions provision/core/vvv/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,21 @@ function shyaml_setup() {
# Used for passing custom parameters to the bash provisioning scripts
if [ ! -f /usr/local/bin/shyaml ]; then
vvv_info " * Installing Shyaml for bash provisioning.."
sudo pip3 install wheel
sudo pip3 install shyaml

local OSVERSION_NUMBER=$(lsb_release lsb_release -sr)

# Ubuntu 24 making it hard to install pip packages, throwing externally-managed-environment error
# https://stackoverflow.com/a/75722775
if dpkg --compare-versions "${OSVERSION_NUMBER[@]}" ge "24.04"
then
# to make it available globally this is the last workaround, hopefully it doesn't break the system
# TODO: try to find a better alternative way to install
sudo pip3 install wheel --break-system-packages
sudo pip3 install shyaml --break-system-packages
else
sudo pip3 install wheel
sudo pip3 install shyaml
fi
fi
}
export -f shyaml_setup
Expand Down