AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
tweak(setup): Improvements to setup script (#7469)
Amelia Bruno52bd033a02e8
diff --git a/cli.py b/cli.pyindex 4c65c1485a..86e4e67cbc 100644--- a/cli.py+++ b/cli.py@@ -69,6 +69,8 @@ d88P 888 "Y88888 "Y888 "Y88P" "Y8888P88 888 888bold=True,))+ else:+ click.echo(click.style("🎉 Setup completed!\n", fg="green"))@cli.group()diff --git a/setup.sh b/setup.shindex adf26bfd2e..85f4ae4786 100755--- a/setup.sh+++ b/setup.sh@@ -10,21 +10,35 @@ elseif ! command -v python3 &> /dev/nullthenecho "python3 could not be found"- echo "Installing python3 using pyenv..."- if ! command -v pyenv &> /dev/null- then- echo "pyenv could not be found"- echo "Installing pyenv..."- curl https://pyenv.run | bash+ echo "Install python3 using pyenv ([y]/n)?"+ read response+ if [[ "$response" == "y" || -z "$response" ]]; then+ echo "Installing python3..."+ if ! command -v pyenv &> /dev/null+ then+ echo "pyenv could not be found"+ echo "Installing pyenv..."+ curl https://pyenv.run | bash+ fi+ pyenv install 3.11.5+ pyenv global 3.11.5+ else+ echo "Aborting setup"+ exit 1fi- pyenv install 3.11.5- pyenv global 3.11.5fiif ! command -v poetry &> /dev/nullthenecho "poetry could not be found"- echo "Installing poetry..."- curl -sSL https://install.python-poetry.org | python3 -+ echo "Install poetry using official installer ([y]/n)?"+ read response+ if [[ "$response" == "y" || -z "$response" ]]; then+ echo "Installing poetry..."+ curl -sSL https://install.python-poetry.org | python3 -+ else+ echo "Aborting setup"+ exit 1+ fififi