Skip to content

Commit

Permalink
Merge pull request #87 from OpenVoiceOS/feat/ubuntu2404
Browse files Browse the repository at this point in the history
[utils/common] Add Python repo when Ubuntu > 23.10 detected
  • Loading branch information
goldyfruit authored May 20, 2024
2 parents d6abaa6 + 4298215 commit 455c98c
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 455c98c

Please sign in to comment.