Changed to python3.8 installing first, removed test_and_fix_python_on_mac

This commit is contained in:
Sam Germain 2021-07-15 01:03:32 -06:00
parent 65ce7c9838
commit 07e3f82400

View File

@ -17,7 +17,8 @@ function check_installed_python() {
exit 2
fi
for v in {9..7}; do
for v in 8 9 7
do
PYTHON="python3.${v}"
which $PYTHON
if [ $? -eq 0 ]; then
@ -141,7 +142,6 @@ function install_macos() {
install_mac_newer_python_dependencies
fi
install_talib
test_and_fix_python_on_mac
}
# Install bot Debian_ubuntu
@ -198,19 +198,6 @@ function reset() {
updateenv
}
function test_and_fix_python_on_mac() {
if ! [ -x "$(command -v python3.6)" ]
then
echo "-------------------------"
echo "Fixing Python"
echo "-------------------------"
echo "Python 3.6 is not linked in your system. Fixing it..."
brew link --overwrite python
echo
fi
}
function config() {
echo "-------------------------"