-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
90 lines (77 loc) · 1.96 KB
/
setup.bat
File metadata and controls
90 lines (77 loc) · 1.96 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
@echo off
:: OdyTest - Model Evaluation Suite Setup Script
:: Creates virtual environment and installs dependencies
echo.
echo ========================================
echo OdyTest - Model Evaluation Suite Setup
echo ========================================
echo.
:: Check if Python is available
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.7+ and add it to your PATH
pause
)
echo Python found:
python --version
echo.
:: Check if we're in the correct directory
if not exist "config.py" (
echo ERROR: Please run this script from the tests/odytest directory
echo Current directory should contain config.py
pause
)
:: Create virtual environment
echo Creating virtual environment...
if not exist venv (
python -m venv venv
)
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
pause
)
echo Virtual environment created successfully.
echo.
:: Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
if errorlevel 1 (
echo ERROR: Failed to activate virtual environment
pause
)
echo Virtual environment activated.
echo.
:: Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
if errorlevel 1 (
echo WARNING: Failed to upgrade pip, continuing anyway...
)
echo.
:: Install requi::ents
echo Installing requi::ents...
pip install -r requi::ents.txt
if errorlevel 1 (
echo ERROR: Failed to install requi::ents
echo Please check requi::ents.txt and try again
pause
)
echo.
echo ========================================
echo Setup completed successfully!
echo ========================================
echo.
echo Virtual environment is ready at: %CD%\venv
echo.
echo To activate the environment manually:
echo venv\Scripts\activate.bat
echo.
echo To run OdyTest:
echo run.bat
echo.
echo To test the installation:
echo python demo.py
echo.
echo ========================================
pause