Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7054780

Browse files
committed
Build SDL3 for ReadTheDocs workflow
Note PKG_CONFIG_PATH on pkg-config errors to debug issues with theenvironment sent to Python setup scripts.
1 parent50721e8 commit7054780

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

‎.readthedocs.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,17 @@ build:
99
tools:
1010
python:"3.11"
1111
apt_packages:
12-
-libsdl3-dev
12+
-build-essential
13+
-make
14+
-pkg-config
15+
-cmake
16+
-ninja-build
17+
jobs:
18+
pre_install:
19+
-git clone --depth 1 --branch release-3.2.16 https://github.com/libsdl-org/SDL.git sdl_repo
20+
-cmake -S sdl_repo -B sdl_build -D CMAKE_INSTALL_PREFIX=~/.local
21+
-cmake --build sdl_build --config Debug
22+
-cmake --install sdl_build
1323

1424
submodules:
1525
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__importannotations
55

6+
importos
67
importplatform
78
importsubprocess
89
importsys
@@ -55,6 +56,10 @@ def check_sdl_version() -> None:
5556
"\nsdl3-config must be on PATH."
5657
)
5758
raiseRuntimeError(msg)fromexc
59+
exceptsubprocess.CalledProcessErrorasexc:
60+
ifsys.version_info>= (3,11):
61+
exc.add_note(f"Note:{os.environ.get('PKG_CONFIG_PATH')=}")
62+
raise
5863
print(f"Found SDL{sdl_version_str}.")
5964
sdl_version=tuple(int(s)forsinsdl_version_str.split("."))
6065
ifsdl_version<SDL_VERSION_NEEDED:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp