Skip to content

Commit

Permalink
chore: drop 3.9 support from setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Oct 1, 2024
1 parent 757ae65 commit 878043e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function check_installed_python() {
exit 2
fi

for v in 12 11 10 9
for v in 12 11 10
do
PYTHON="python3.${v}"
which $PYTHON
Expand All @@ -36,7 +36,7 @@ function check_installed_python() {
fi
done

echo "No usable python found. Please make sure to have python3.9 or newer installed."
echo "No usable python found. Please make sure to have python3.10 or newer installed."
exit 1
}

Expand Down Expand Up @@ -166,7 +166,7 @@ function install_macos() {
#Gets number after decimal in python version
version=$(egrep -o 3.\[0-9\]+ <<< $PYTHON | sed 's/3.//g')

if [[ $version -ge 9 ]]; then #Checks if python version >= 3.9
if [[ $version -ge 10 ]]; then #Checks if python version >= 3.10
install_mac_newer_python_dependencies
fi
}
Expand Down Expand Up @@ -277,7 +277,7 @@ function install() {
install_redhat
else
echo "This script does not support your OS."
echo "If you have Python version 3.9 - 3.12, pip, virtualenv, ta-lib you can continue."
echo "If you have Python version 3.10 - 3.12, pip, virtualenv, ta-lib you can continue."
echo "Wait 10 seconds to continue the next install steps or use ctrl+c to interrupt this shell."
sleep 10
fi
Expand All @@ -304,7 +304,7 @@ function help() {
echo " -p,--plot Install dependencies for Plotting scripts."
}

# Verify if 3.9+ is installed
# Verify if 3.10+ is installed
check_installed_python

case $* in
Expand Down

0 comments on commit 878043e

Please sign in to comment.