diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-31 01:42:58 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:23:27 +0100 |
| commit | 12021475e80ce594488c78700c586b5ce41b9d09 (patch) | |
| tree | b43c665d846492bcf38c314e72cb3fe89e984d1f /gnu | |
| parent | a6306eb0bcb7fa19a830830691573aeb15483641 (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')
| -rw-r--r-- | gnu/packages/game-development.scm | 39 |
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.") ;; under the CC0 license. license:cc0)))) +;; XXX: Currently the pyproject build-system is unable to install multiple +;; python modules in a single package. This package uses old-style 'build and +;; 'install for this reason. (define-public python-xsge (package (name "python-xsge") @@ -777,20 +780,30 @@ levels.") (sha256 (base32 "0g86p5i9lflvblzy7977lmxbsma5hdlz63sk0k8c59vnhg8sij4i")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - '(#:phases - (modify-phases %standard-phases - ;; xSGE's setup.py script does not support one of the Python build - ;; system's default flags, "--single-version-externally-managed". - (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (invoke "python" "setup.py" "install" - (string-append "--prefix=" (assoc-ref outputs "out")) - "--root=/")))) - #:tests? #f)) ; no check target - (propagated-inputs - (list python-sge)) + (list + #:tests? #f ; No tests. + #:configure-flags + ;; Transformed format for #:phases convenience. + #~(map (lambda (pair) + (string-join (list (car pair) (cdr pair)) "=")) + ;; Normal/expected pyproject format. + `(("--prefix" . ,#$output))) + #:phases + #~(modify-phases %standard-phases + ;; xSGE's setup.py script does not support one of the Python build + ;; system's default flags, "--single-version-externally-managed". + (replace 'build + (lambda* (#:key configure-flags #:allow-other-keys) + (apply invoke "python" "setup.py" "build" + configure-flags))) + (replace 'install + (lambda* (#:key configure-flags #:allow-other-keys) + (apply invoke "python" "setup.py" "install" + configure-flags)))))) + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-sge)) (home-page "https://python-sge.github.io/") (synopsis "Extensions for the SGE Game Engine") (description |
