From 21bb9ab18e092fe1a2deae422d0ef512eda95d48 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 1 Mar 2026 15:15:59 -0800 Subject: [PATCH] raylib: fix setup.py to also trigger offscreen variant build setup.py had its own cache check that only looked for libraylib.a, skipping build.sh entirely when the cache had the desktop variant. Now also checks for libraylib_offscreen.a on x86_64. Co-Authored-By: Claude Opus 4.6 --- raylib/pyproject.toml | 2 +- raylib/raylib/version.py | 2 +- raylib/setup.py | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/raylib/pyproject.toml b/raylib/pyproject.toml index dbeee5c..9bcfb1a 100644 --- a/raylib/pyproject.toml +++ b/raylib/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "raylib" -version = "5.5.0.7" +version = "5.5.0.8" description = "raylib + pyray Python bindings (commaai fork)" requires-python = ">=3.8" dependencies = ["cffi>=1.17.1"] diff --git a/raylib/raylib/version.py b/raylib/raylib/version.py index 601699b..fe59f63 100644 --- a/raylib/raylib/version.py +++ b/raylib/raylib/version.py @@ -1 +1 @@ -__version__ = "5.5.0.7" \ No newline at end of file +__version__ = "5.5.0.8" \ No newline at end of file diff --git a/raylib/setup.py b/raylib/setup.py index 532e52c..03aaa18 100644 --- a/raylib/setup.py +++ b/raylib/setup.py @@ -18,9 +18,12 @@ class BuildRaylib(build_py): def run(self): pkg_dir = os.path.dirname(os.path.abspath(__file__)) - marker = os.path.join(pkg_dir, "raylib", "install", "lib", "libraylib.a") + lib_dir = os.path.join(pkg_dir, "raylib", "install", "lib") + marker = os.path.join(lib_dir, "libraylib.a") + offscreen_marker = os.path.join(lib_dir, "libraylib_offscreen.a") + need_offscreen = platform.system() == "Linux" and platform.machine() == "x86_64" - if not os.path.exists(marker): + if not os.path.exists(marker) or (need_offscreen and not os.path.exists(offscreen_marker)): build_script = os.path.join(pkg_dir, "build.sh") subprocess.check_call(["bash", build_script], cwd=pkg_dir)