Skip to content

Commit

Permalink
Update run-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MarxAnthony authored Dec 5, 2024
1 parent 94d53a2 commit 9916e31
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions run-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,14 @@ if [ "$(uname)" = "Darwin" ]; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

# Check installed Python version and install the correct Homebrew Python version ( macOS )
# Check installed Python version and install the correct Homebrew Python version (macOS)
python_version=$(python3 --version | awk '{print $2}' | cut -d'.' -f1,2)
if [ "$python_version" = "3.9" ]; then
log_message "Python 3.9 detected. Installing Python 3.9 using Homebrew..."
brew install [email protected]
elif [ "$python_version" = "3.10" ]; then
log_message "Python 3.10 detected. Installing Python 3.10 using Homebrew..."
log_message "Python 3.9 detected. Installing Python 3.10 using Homebrew..."
brew install [email protected]
else
log_message "Python version $python_version detected. Please use Python 3.9 or 3.10."
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
elif [ "$python_version" != "3.10" ]; then
log_message "Unsupported Python version detected: $python_version. Please use Python 3.10."
exit 1
fi

Expand All @@ -183,3 +181,4 @@ fi

prepare_install


0 comments on commit 9916e31

Please sign in to comment.