From d8073ffc64273f6664efef9fd9cd6a6d02fd4ae8 Mon Sep 17 00:00:00 2001 From: BluTiger <65156144+Blu-Tiger@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:09:56 +0200 Subject: [PATCH] Update unix_install.sh --- unix_install.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/unix_install.sh b/unix_install.sh index 0ed92ba..b42a6ec 100644 --- a/unix_install.sh +++ b/unix_install.sh @@ -44,6 +44,34 @@ install_on_macos() { set -e +# Check and install Python3 +# if command_exists python3 > /dev/null 2>&1; then +# echo "Checking Python..." +# else +# # Detect the platform and install Python3 accordingly +# if [[ "$OSTYPE" == "linux-gnu"* ]]; then +# # Detect the package manager +# if command_exists apt; then +# install_on_debian "python3" +# elif command_exists yum; then +# install_on_redhat "python3" +# elif command_exists pacman; then +# install_on_arch "python-pip" +# else +# echo "Unsupported Linux distribution." +# exit 1 +# fi +# elif [[ "$OSTYPE" == "bsd"* ]]; then +# echo "Detected BSD-based system." +# install_on_bsd "python39" +# elif [[ "$OSTYPE" == "darwin"* ]]; then +# install_on_macos "python" +# else +# echo "Unsupported operating system." +# exit 1 +# fi +# fi + # Get the Python version PYTHON_VERSION=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:3])))')