[IMPROVED] Simplificar aider_install.sh para usar el instalador oficial directamente
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
15fb4ed5fd
commit
8fce17c1ee
1 changed files with 1 additions and 31 deletions
|
@ -55,37 +55,8 @@ load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "developers"
|
|||
title="${head_000} ${aimsg_000}"
|
||||
AIDER_VENV="$HOME/.aider-venv"
|
||||
|
||||
# Función para verificar python
|
||||
check_python() {
|
||||
if ! command -v python3 &> /dev/null; then
|
||||
echo "${aimsg_001}"
|
||||
echo "${aimsg_002}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Función para verificar pip
|
||||
check_pip() {
|
||||
if ! command -v pip3 &> /dev/null; then
|
||||
echo "${aimsg_003}"
|
||||
echo "${aimsg_004}"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Función para verificar virtualenv
|
||||
check_venv() {
|
||||
if ! python3 -c "import venv" &> /dev/null; then
|
||||
echo "${aimsg_005}"
|
||||
if [ -f /etc/debian_version ]; then
|
||||
sudo apt-get update && sudo apt-get install -y python3-venv
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
sudo dnf install -y python3-venv
|
||||
else
|
||||
pip3 install --user virtualenv
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Función para instalar aider
|
||||
install_aider() {
|
||||
|
@ -131,8 +102,7 @@ main() {
|
|||
uninstall_aider
|
||||
exit 0
|
||||
else
|
||||
# Verificar requisitos
|
||||
check_python
|
||||
# Instalar aider directamente
|
||||
install_aider
|
||||
|
||||
echo ""
|
||||
|
|
Loading…
Reference in a new issue