summaryrefslogtreecommitdiff
path: root/gnu/packages/game-development.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-12-31 01:42:58 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:23:27 +0100
commit12021475e80ce594488c78700c586b5ce41b9d09 (patch)
treeb43c665d846492bcf38c314e72cb3fe89e984d1f /gnu/packages/game-development.scm
parenta6306eb0bcb7fa19a830830691573aeb15483641 (diff)
gnu: python-xsge: Switch to pyproject.
* gnu/packages/game-development.scm (python-xsge): [build-system]: Switch to pyproject-build-system. [arguments]<#:configure-flags>: Set them. <#:phases>: Replace 'build phase along with the 'install one. [native-inputs]: Add python-setuptools. Change-Id: I6858d63a87e813df0aea78854c3ce56a6d5c94d0 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/game-development.scm')
-rw-r--r--gnu/packages/game-development.scm39
1 files changed, 26 insertions, 13 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 896b051290c..8668cc8dfd4 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -765,6 +765,9 @@ levels.")
765 ;; under the CC0 license. 765 ;; under the CC0 license.
766 license:cc0)))) 766 license:cc0))))
767 767
768;; XXX: Currently the pyproject build-system is unable to install multiple
769;; python modules in a single package. This package uses old-style 'build and
770;; 'install for this reason.
768(define-public python-xsge 771(define-public python-xsge
769 (package 772 (package
770 (name "python-xsge") 773 (name "python-xsge")
@@ -777,20 +780,30 @@ levels.")
777 (sha256 780 (sha256
778 (base32 781 (base32
779 "0g86p5i9lflvblzy7977lmxbsma5hdlz63sk0k8c59vnhg8sij4i")))) 782 "0g86p5i9lflvblzy7977lmxbsma5hdlz63sk0k8c59vnhg8sij4i"))))
780 (build-system python-build-system) 783 (build-system pyproject-build-system)
781 (arguments 784 (arguments
782 '(#:phases 785 (list
783 (modify-phases %standard-phases 786 #:tests? #f ; No tests.
784 ;; xSGE's setup.py script does not support one of the Python build 787 #:configure-flags
785 ;; system's default flags, "--single-version-externally-managed". 788 ;; Transformed format for #:phases convenience.
786 (replace 'install 789 #~(map (lambda (pair)
787 (lambda* (#:key outputs #:allow-other-keys) 790 (string-join (list (car pair) (cdr pair)) "="))
788 (invoke "python" "setup.py" "install" 791 ;; Normal/expected pyproject format.
789 (string-append "--prefix=" (assoc-ref outputs "out")) 792 `(("--prefix" . ,#$output)))
790 "--root=/")))) 793 #:phases
791 #:tests? #f)) ; no check target 794 #~(modify-phases %standard-phases
792 (propagated-inputs 795 ;; xSGE's setup.py script does not support one of the Python build
793 (list python-sge)) 796 ;; system's default flags, "--single-version-externally-managed".
797 (replace 'build
798 (lambda* (#:key configure-flags #:allow-other-keys)
799 (apply invoke "python" "setup.py" "build"
800 configure-flags)))
801 (replace 'install
802 (lambda* (#:key configure-flags #:allow-other-keys)
803 (apply invoke "python" "setup.py" "install"
804 configure-flags))))))
805 (native-inputs (list python-setuptools))
806 (propagated-inputs (list python-sge))
794 (home-page "https://python-sge.github.io/") 807 (home-page "https://python-sge.github.io/")
795 (synopsis "Extensions for the SGE Game Engine") 808 (synopsis "Extensions for the SGE Game Engine")
796 (description 809 (description