35 lines
671 B
Bash
35 lines
671 B
Bash
#!/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!"
|
||
|