aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-11-04 00:09:49 +0100
committerLudovic Courtès <ludo@gnu.org>2015-11-04 00:12:20 +0100
commitf856fcb558eb59f9bb0d4b0651bd7508370321f4 (patch)
treebe5b1abd5c7d80a8ab842eb4d7826575319680be
parent32728adb958560268b793b4a3e48d94111b5ed2d (diff)
downloadgnu-guix-f856fcb558eb59f9bb0d4b0651bd7508370321f4.tar
gnu-guix-f856fcb558eb59f9bb0d4b0651bd7508370321f4.tar.gz
build-system/python: 'package-with-python2' preserves source location.
* guix/build-system/python.scm (package-with-explicit-python): Add 'location' field.
-rw-r--r--guix/build-system/python.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/build-system/python.scm b/guix/build-system/python.scm
index 1a5d9df473..2532210a49 100644
--- a/guix/build-system/python.scm
+++ b/guix/build-system/python.scm
@@ -92,6 +92,7 @@ NEW-PREFIX; otherwise, NEW-PREFIX is prepended to the name."
(if (eq? (package-build-system p) python-build-system)
(package
(inherit p)
+ (location (package-location p))
(name (let ((name (package-name p)))
(string-append new-prefix
(if (string-prefix? old-prefix name)