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

[utils/common] Add Python repo when Ubuntu > 23.10 detected #87

Merged
merged 4 commits into from
May 20, 2024
Merged
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
10 changes: 10 additions & 0 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ function required_packages() {
case "$DISTRO_NAME" in
debian | ubuntu | raspbian | linuxmint | zorin)
[ "$DISTRO_VERSION_ID" == "11" ] && export PYTHON_VERSION="3"
# This is a temporary fix until OVOS is confirmed to work with
# Python 3.12. Requirements are PocketSphinx, tflite-runtime and
# onnxruntime Python packages.
if [ "$(ver "$DISTRO_VERSION_ID")" -ge "$(ver 24.04)" ]; then
{
apt-get update
apt-get install --no-install-recommends -y software-properties-common
add-apt-repository ppa:deadsnakes/ppa -y
} &>>"$LOG_FILE"
fi
apt-get update &>>"$LOG_FILE"
apt-get install --no-install-recommends -y "python${PYTHON_VERSION}" "python${PYTHON_VERSION}-dev" python3-pip "python${PYTHON_VERSION}-venv" whiptail expect jq "${extra_packages[@]}" &>>"$LOG_FILE"
;;
Expand Down
Loading