From eda5ec4429c9947e078a03923319718f50e9e0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Mon, 6 Apr 2020 16:48:09 +0200 Subject: build-system/python: Add a #:python-output argument. This simplifies packages that ship Python bindings in a separate output. * guix/build-system/python.scm (python-build): Add the argument, pass it build-side. * guix/build/python-build-system.scm (site-packages): Add an #:output argument. (add-installed-pythonpath): Likewise. (install): Use the #:python-output argument. (wrap): Likewise. (rename-pth-file): Likewise. Use the site-packages procedure. --- guix/build-system/python.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guix/build-system/python.scm') diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm index e39c06528e..34cc487c8c 100644 --- a/guix/build-system/python.scm +++ b/guix/build-system/python.scm @@ -170,6 +170,7 @@ pre-defined variants." (phases '(@ (guix build python-build-system) %standard-phases)) (outputs '("out")) + (python-output "out") (search-paths '()) (system (%current-system)) (guile #f) @@ -196,6 +197,7 @@ provides a 'setup.py' file as its build system." #:use-setuptools? ,use-setuptools? #:phases ,phases #:outputs %outputs + #:python-output ,python-output #:search-paths ',(map search-path-specification->sexp search-paths) #:inputs %build-inputs))) -- cgit v1.2.3