-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
62 lines (50 loc) · 1.49 KB
/
setup.bat
File metadata and controls
62 lines (50 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
REM Setup script for Windows
REM Creates virtual environment and installs dependencies
echo 🚀 Setting up SeamlessM4T S2ST Translator...
REM Check Python version
python --version >nul 2>&1
if errorlevel 1 (
echo ❌ Error: Python not found. Please install Python 3.9+ first.
exit /b 1
)
echo ✅ Python found
REM Create virtual environment
if not exist "venv" (
echo 📦 Creating virtual environment...
python -m venv venv
) else (
echo ✅ Virtual environment already exists
)
REM Activate virtual environment
echo 🔌 Activating virtual environment...
call venv\Scripts\activate.bat
REM Upgrade pip
echo ⬆️ Upgrading pip...
python -m pip install --upgrade pip setuptools wheel
REM Install dependencies
echo 📥 Installing dependencies...
pip install -r requirements.txt
REM Install dev dependencies if available
if exist "requirements-dev.txt" (
echo 📥 Installing development dependencies...
pip install -r requirements-dev.txt
)
REM Create necessary directories
echo 📁 Creating directories...
if not exist "input" mkdir input
if not exist "output\translated" mkdir output\translated
if not exist "output\metadata" mkdir output\metadata
if not exist "output\logs" mkdir output\logs
if not exist "output\backups" mkdir output\backups
if not exist "config" mkdir config
echo.
echo ✅ Setup complete!
echo.
echo To activate the virtual environment, run:
echo venv\Scripts\activate.bat
echo.
echo To start using the tool, run:
echo run.bat --help
echo.
pause