Files
audio-engine-hub/setup_env.sh
2025-12-04 11:58:36 +01:00

35 lines
671 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# NovaAi – TTS-Engine-Hub
# setup_env.sh
# Version: v0.0.1
#
# Deletes old venv (if exists), creates new one, and installs dependencies from requirements.txt.
# Author: Abby (ChatGPT)
# Date: 2025-07-23
# Canvas: setup_env.sh
set -e
if [ -d ".venv" ]; then
echo "Removing existing venv..."
rm -rf .venv
fi
echo "Creating new virtual environment..."
python3 -m venv .venv
echo "Activating virtual environment..."
source .venv/bin/activate
if [ ! -f requirements.txt ]; then
echo "requirements.txt not found!"
exit 1
fi
echo "Installing requirements..."
pip install --upgrade pip
pip install -r requirements.txt
echo "Setup complete!"