Skip to content

Commit d0f97f8

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Build SDL3 for ReadTheDocs workflow
1 parent 7c4ac4d commit d0f97f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.readthedocs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ build:
2020
- cmake -S sdl_repo -B sdl_build
2121
- cmake --build sdl_build --config Debug
2222
- cmake --install sdl_build --config Debug --prefix ~/.local
23-
- sudo cp --verbose ~/.local/lib/pkgconfig/sdl3.pc /lib/pkgconfig/sdl3.pc
2423

2524
submodules:
2625
include: all

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from __future__ import annotations
55

6+
import os
67
import platform
78
import subprocess
89
import sys
@@ -55,6 +56,10 @@ def check_sdl_version() -> None:
5556
"\nsdl3-config must be on PATH."
5657
)
5758
raise RuntimeError(msg) from exc
59+
except subprocess.CalledProcessError as exc:
60+
if sys.version_info >= (3, 11):
61+
exc.add_note(f"{os.environ['PKG_CONFIG_PATH']=}")
62+
raise
5863
print(f"Found SDL {sdl_version_str}.")
5964
sdl_version = tuple(int(s) for s in sdl_version_str.split("."))
6065
if sdl_version < SDL_VERSION_NEEDED:

0 commit comments

Comments
 (0)