-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-gitbash.sh
More file actions
40 lines (36 loc) · 1.28 KB
/
setup-gitbash.sh
File metadata and controls
40 lines (36 loc) · 1.28 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
#!/bin/bash
# Simple setup for 3 Python versions using uv (Git Bash on Windows)
echo "Setting up Python performance testing environments..."
# Create Python 3.13 environment
echo "Creating Python 3.13 environment..."
uv venv --python 3.13 venv-3.13
source venv-3.13/Scripts/activate
uv pip install -e .
deactivate
# Create Python 3.14 environment
echo "Creating Python 3.14 environment..."
uv venv --python 3.14 venv-3.14
source venv-3.14/Scripts/activate
uv pip install -e .
deactivate
# Create Python 3.14 threadfree environment
echo "Creating Python 3.14 threadfree environment..."
uv venv --python 3.14t venv-3.14-threadfree
source venv-3.14-threadfree/Scripts/activate
uv pip install -e .
deactivate
echo ""
echo "✅ All environments created successfully!"
echo ""
echo "To switch between Python versions:"
echo " source venv-3.13/Scripts/activate (Python 3.13)"
echo " source venv-3.14/Scripts/activate (Python 3.14)"
echo " source venv-3.14-threadfree/Scripts/activate (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..."
read -n 1