gnu: python2-renpy: Drop unused Ren'py sources.
These sources are written in Ren'py (the language) and thus not particularly useful before renpy itself is built. In particular, they serve no purpose when installed without prior compilation. * gnu/packages/game-development.scm (python2-renpy)[#:phases]<install>: Drop installed "common" folder. (renpy)[#:phases]<install>: Adjust comment accordingly.master
parent
17c8fedc25
commit
d4bef961b5
|
@ -1230,7 +1230,8 @@ developed mainly for Ren'py.")
|
||||||
(with-directory-excursion "module"
|
(with-directory-excursion "module"
|
||||||
(apply (assoc-ref %standard-phases 'install) args))
|
(apply (assoc-ref %standard-phases 'install) args))
|
||||||
(copy-recursively "renpy"
|
(copy-recursively "renpy"
|
||||||
(string-append out site "/renpy")))
|
(string-append out site "/renpy"))
|
||||||
|
(delete-file-recursively (string-append out site "/renpy/common")))
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("ffmpeg" ,ffmpeg)
|
`(("ffmpeg" ,ffmpeg)
|
||||||
|
@ -1304,11 +1305,14 @@ modules of Ren'py.")
|
||||||
;; After finishing this step, "out" will have the following:
|
;; After finishing this step, "out" will have the following:
|
||||||
;; |-- bin/renpy
|
;; |-- bin/renpy
|
||||||
;; `-- share/renpy ; i.e. path_to_renpy_base()
|
;; `-- share/renpy ; i.e. path_to_renpy_base()
|
||||||
;; `-- common
|
;; |-- common
|
||||||
|
;; `-- gui
|
||||||
;;
|
;;
|
||||||
;; Note that common is also a de facto unused directory in
|
;; Note that common shares the source files that would be installed
|
||||||
;; python2-renpy. On other systems, renpy_base would point to
|
;; by python2-renpy (which are instead deleted from that package),
|
||||||
;; site-packages or even somewhere in /opt.
|
;; but also contains their byte-compiled versions.
|
||||||
|
;; On other systems, renpy_base would point to site-packages or
|
||||||
|
;; even somewhere in /opt.
|
||||||
;; The former approach is not as straightforward as it seems
|
;; The former approach is not as straightforward as it seems
|
||||||
;; -- it causes renpy to load files twice for some weird reason --
|
;; -- it causes renpy to load files twice for some weird reason --
|
||||||
;; and the latter is impossible on Guix. Hence the detour through
|
;; and the latter is impossible on Guix. Hence the detour through
|
||||||
|
@ -1321,7 +1325,9 @@ modules of Ren'py.")
|
||||||
;; `-- Super Awesome Game
|
;; `-- Super Awesome Game
|
||||||
;; |-- game ; <- the folder we actually want
|
;; |-- game ; <- the folder we actually want
|
||||||
;; |-- lib ; compiled renpy module and dependencies
|
;; |-- lib ; compiled renpy module and dependencies
|
||||||
;; |-- renpy ; Ren'py python code (source + compiled)
|
;; |-- renpy ; yet another copy of Ren'py's code
|
||||||
|
;; | |-- common ; the common folder from above
|
||||||
|
;; | `-- ... ; Python code (source + compiled)
|
||||||
;; |-- Super Awesome Game.py
|
;; |-- Super Awesome Game.py
|
||||||
;; `-- Super Awesome Game.sh
|
;; `-- Super Awesome Game.sh
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Reference in New Issue