diff options
| author | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-24 21:24:59 +0100 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-03-26 06:39:06 +0100 |
| commit | 5ba1f04a4dc998dab19ff11ed5f305d22d47793f (patch) | |
| tree | fd54c0a556b256b46462b23013009e080844615b /guix | |
| parent | c483315fafd6f9478bbf5d37038ae5fe809bea85 (diff) | |
build-system: renpy: Drop reliance on python-build-system.
* guix/build/renpy-build-system.scm (enable-bytecode-determinism): New
variable.
(%standard-phases): Replace python:enable-bytecode-determinism with
own variant.
* guix/build-system/renpy.scm (%renpy-build-system-modules):
Drop (guix build python-build-system).
Fixes: guix/guix#7426 (“Migrate `renpy-build-system' to pyproject”)
Diffstat (limited to 'guix')
| -rw-r--r-- | guix/build-system/renpy.scm | 1 | ||||
| -rw-r--r-- | guix/build/renpy-build-system.scm | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/guix/build-system/renpy.scm b/guix/build-system/renpy.scm index 76410f192e..925285d181 100644 --- a/guix/build-system/renpy.scm +++ b/guix/build-system/renpy.scm @@ -44,7 +44,6 @@ (define %renpy-build-system-modules ;; Build-side modules imported by default. `((guix build renpy-build-system) - (guix build python-build-system) ,@%default-gnu-imported-modules)) (define* (lower name diff --git a/guix/build/renpy-build-system.scm b/guix/build/renpy-build-system.scm index cc5ded69f4..4e1ded7c7b 100644 --- a/guix/build/renpy-build-system.scm +++ b/guix/build/renpy-build-system.scm @@ -18,7 +18,6 @@ (define-module (guix build renpy-build-system) #:use-module ((guix build gnu-build-system) #:prefix gnu:) - #:use-module ((guix build python-build-system) #:prefix python:) #:use-module (guix build utils) #:use-module (ice-9 match) #:use-module (ice-9 ftw) @@ -28,6 +27,12 @@ #:export (%standard-phases renpy-build)) +(define* (enable-bytecode-determinism #:rest _) + "Improve determinism of pyc and rpyc files." + ;; Same reasoning as in pyproject-build-system, see there… + (setenv "PYTHONHASHSEED" "0") + (setenv "PYTHONDONTWRITEBYTECODE" "1")) + (define* (build #:key game #:allow-other-keys) (for-each make-file-writable (find-files game (lambda (pred stat) @@ -96,7 +101,7 @@ (define %standard-phases (modify-phases gnu:%standard-phases (add-after 'unpack 'enable-bytecode-determinism - (assoc-ref python:%standard-phases 'enable-bytecode-determinism)) + enable-bytecode-determinism) (delete 'bootstrap) (delete 'configure) (replace 'build build) |
