-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathsetup.bat
More file actions
38 lines (38 loc) · 1.09 KB
/
setup.bat
File metadata and controls
38 lines (38 loc) · 1.09 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
@echo off
echo ===================================================
echo === Setting up python_v2ray Development ===
echo ===================================================
echo.
echo [1/4] Checking for Python installation...
python --version >nul 2>nul
if %errorlevel% neq 0 (
echo - ERROR: Python is not installed or not in PATH.
pause
exit /b
)
echo - Python found.
echo.
echo [2/4] Creating Python virtual environment in '.venv'...
if not exist .venv (
python -m venv .venv
)
call .venv\Scripts\activate
echo.
echo [3/4] Installing Python dependencies...
pip install -q --upgrade pip
pip install -q -r requirements.txt
echo - Python packages installed successfully.
echo.
echo [4/4] Checking for Go installation...
go version >nul 2>nul
if %errorlevel% neq 0 (
echo - WARNING: Go is not installed or not in PATH.
) else (
echo - Go found.
)
echo.
echo ===================================================
echo === Setup Complete ===
echo ===================================================
echo.
pause