mirror of
https://github.com/Significant-Gravitas/Auto-GPT.git
synced 2025-01-07 03:17:23 +08:00
ef7cfbb860
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then
|
|
echo "This script cannot be run on Windows."
|
|
echo "Please follow the installation instructions at https://docs.python.org/3/using/windows.html"
|
|
echo "To install poetry on Windows, please follow the instructions at https://python-poetry.org/docs/master/#installation"
|
|
|
|
exit 1
|
|
else
|
|
if ! command -v python3 &> /dev/null
|
|
then
|
|
echo "python3 could not be found"
|
|
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 1
|
|
fi
|
|
fi
|
|
|
|
if ! command -v poetry &> /dev/null
|
|
then
|
|
echo "poetry could not be found"
|
|
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
|
|
fi
|
|
fi
|
|
fi
|