Skip to content

Commit

Permalink
Merge pull request #184 from OpenVoiceOS/feat/check_python_version
Browse files Browse the repository at this point in the history
[utils/common] Check for Python version higher than 3.8
  • Loading branch information
goldyfruit authored Oct 15, 2024
2 parents 8154055 + 552d86a commit d6908b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ function required_packages() {
# to match the target user.
function create_python_venv() {
echo -ne "➤ Creating installer Python virtualenv... "

# Make sure Python version is higher then 3.8.
if [ "$(ver "$PYTHON")" -lt "$(ver 3.9)" ]; then
echo "python $PYTHON is not supported" &>>"$LOG_FILE"
on_error
fi

# Disable https://www.piwheels.org/simple when aarch64 CPU architecture
# or Raspberry Pi 5 board are detected.
if [ -f /etc/pip.conf ]; then
Expand Down

0 comments on commit d6908b1

Please sign in to comment.