GNU bug report logs -
#49329
[PATCH 00/??] Improve Ren'py package
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Leo Prikler <leo.prikler <at> student.tugraz.at> writes:
> diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
> [...]
> #t))
> (replace 'wrap
> (lambda* (#:key inputs outputs #:allow-other-keys)
> - (wrap-program (string-append (assoc-ref outputs "out")
> - "/bin/renpy")
> - `("PYTHONPATH" = (,(getenv "PYTHONPATH"))))
> - #t)))))
> + (let ((out (assoc-ref outputs "out"))
> + (site (string-append "/lib/python"
> + (python-version
> + (assoc-ref inputs "python"))
> + "/site-packages")))
> + (wrap-program (string-append out "/bin/renpy")
> + `("PYTHONPATH" =
> + (,@(delete-duplicates
> + (map
> + (lambda (store-path)
> + (string-append store-path site))
> + (cons (assoc-ref outputs "out")
> + (map cdr
> + (filter
> + (lambda (input)
> + (string-prefix? "python2" (car input)))
> + inputs))))))))
> + #t))))))
What's the motivation for doing this? It seems like the new version
deletes duplicates, but has the downside of being a little more
complicated and relying on the package names to determine what goes into
the PYTHONPATH.
Duplicate entries in the PYTHONPATH should not be a problem for
correctness or performance, right? I feel like this section was perhaps
better the way it was originally. Am I missing something?
--
Chris
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 4 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.