-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
40 lines (36 loc) · 1.25 KB
/
setup.bat
File metadata and controls
40 lines (36 loc) · 1.25 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
@echo off
REM Simple setup for 3 Python versions using uv (Windows CMD)
echo Setting up Python performance testing environments...
REM Create Python 3.13 environment
echo Creating Python 3.13 environment...
uv venv --python 3.13 venv-3.13
call venv-3.13\Scripts\activate.bat
uv pip install -e .
call deactivate
REM Create Python 3.14 environment
echo Creating Python 3.14 environment...
uv venv --python 3.14 venv-3.14
call venv-3.14\Scripts\activate.bat
uv pip install -e .
call deactivate
REM Create Python 3.14 threadfree environment
echo Creating Python 3.14 threadfree environment...
uv venv --python 3.14t venv-3.14-threadfree
call venv-3.14-threadfree\Scripts\activate.bat
uv pip install -e .
call deactivate
echo.
echo ✅ All environments created successfully!
echo.
echo To switch between Python versions:
echo venv-3.13\Scripts\activate.bat (Python 3.13)
echo venv-3.14\Scripts\activate.bat (Python 3.14)
echo venv-3.14-threadfree\Scripts\activate.bat (Python 3.14 threadfree)
echo.
echo To run the same script with different versions:
echo venv-3.13\Scripts\python.exe benchmark.py
echo venv-3.14\Scripts\python.exe benchmark.py
echo venv-3.14-threadfree\Scripts\python.exe benchmark.py
echo.
echo Press any key to exit...
pause >nul