We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a604b5 commit 339afdeCopy full SHA for 339afde
SetupDeveloperPC.sh
@@ -26,9 +26,19 @@ cd "$(dirname "$0")" || exit
26
# Install macOS dependencies early if on macOS
27
if command -v brew &> /dev/null; then
28
echo "Installing macOS dependencies with Homebrew..."
29
- brew install uv python-tk@3.9
+
30
+ if command -v python3 &> /dev/null; then
31
+ PY_VER=$(python3 --version | awk '{print $2}' | cut -d. -f1,2)
32
+ else
33
+ echo "Python not found."
34
+ exit 1
35
+ fi
36
37
+ echo "Found Python $PY_VER, installing python-tk..."
38
+ brew install uv python-tk@"$PY_VER"
39
40
echo "Creating Python virtual environment with uv..."
- uv venv --python 3.9
41
+ uv venv --python "$PY_VER"
42
else
43
# Create a local virtual environment if it doesn't exist
44
if [ ! -d ".venv" ]; then
0 commit comments