Skip to content

Commit ee5d955

Browse files
meltingscalesclaude
andcommitted
fix macOS build: pin Python <3.14, install SDL2 via brew
pygame has no pre-built wheels for Python 3.14 yet, causing source builds to fail when SDL2 is absent. Pin requires-python to <3.14 and add a .python-version file so uv picks 3.13 on all platforms. Also install SDL2 deps via brew in setup.sh for macOS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 80321af commit ee5d955

File tree

4 files changed

+7
-43
lines changed

4 files changed

+7
-43
lines changed

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Fighting games for goldfish with keyboards >:3c"
55
authors = [{name = "henryfbp", email = "HenryFBP@gmail.com"}]
66
readme = "README.md"
77
keywords = ["pygame", "fighting-game", "tekken", "guilty-gear-strive"]
8-
requires-python = ">=3.8"
8+
requires-python = ">=3.8,<3.14"
99
dependencies = [
1010
"json5>=0.9.6",
1111
"pygame>=2.1.2",

scripts/setup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ fi
2020
if [[ $platform == 'linux' ]]; then
2121
echo "Making sure required tools are installed."
2222
sudo apt-get install -y wmctrl
23-
else
24-
echo "Not Linux, maybe OSX? Cannot install xdotool or wmctrl. Skipping."
23+
elif [[ $platform == 'darwin' ]]; then
24+
echo "Making sure SDL2 is installed for pygame."
25+
brew install sdl2 sdl2_image sdl2_mixer sdl2_ttf
2526
fi
2627

2728
uv sync --group dev

0 commit comments

Comments
 (0)