gnu: libselinux: Install python bindings to separate output.

This reduces the closure size of glib from 203.1 to 111.3 MiB.

* gnu/packages/selinux.scm (libselinux)[outputs]: New field.
[arguments]: Set PYSITEDIR to the new "python" output.
This commit is contained in:
Marius Bakke 2019-07-11 15:40:20 +02:00
parent ff1e80d791
commit 568d060327
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 2 additions and 1 deletions

View File

@ -131,6 +131,7 @@ module into a binary representation.")
(define-public libselinux
(package (inherit libsepol)
(name "libselinux")
(outputs '("out" "python"))
(arguments
(substitute-keyword-arguments (package-arguments libsepol)
((#:make-flags flags)
@ -139,7 +140,7 @@ module into a binary representation.")
(assoc-ref %build-inputs "libsepol")
"/lib/libsepol.a")
(string-append "PYSITEDIR="
(assoc-ref %outputs "out")
(assoc-ref %outputs "python")
"/lib/python"
,(version-major+minor (package-version python))
"/site-packages/")