aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-01-22 09:39:01 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-02-01 11:53:43 -0500
commit18e9979970eb3a2cc9e0afca4a64c220ce6ebe5b (patch)
treeeb8683ea60b81f259aaf757abe93353a9f68c126
parentcb72f9a773e0931ee3758c851d96007ded034e4c (diff)
downloadguix-18e9979970eb3a2cc9e0afca4a64c220ce6ebe5b.tar.gz
guix-18e9979970eb3a2cc9e0afca4a64c220ce6ebe5b.zip
build/python: Replace PYTHONPATH by GUIX_PYTHONPATH.
* guix/build/python-build-system.scm (add-installed-pythonpath): Replace "PYTHONPATH" by "GUIX_PYTHONPATH".
-rw-r--r--guix/build/python-build-system.scm13
1 files changed, 6 insertions, 7 deletions
diff --git a/guix/build/python-build-system.scm b/guix/build/python-build-system.scm
index c6c88e6577..8e359398e1 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -170,14 +170,13 @@
(string-append out "/lib/python" (python-version python) "/site-packages")))
(define (add-installed-pythonpath inputs outputs)
- "Prepend the Python site-package of OUTPUT to PYTHONPATH. This is useful
+ "Add the Python site-package of OUTPUT to GUIX_PYTHONPATH. This is useful
when running checks after installing the package."
- (let ((old-path (getenv "PYTHONPATH"))
- (add-path (site-packages inputs outputs)))
- (setenv "PYTHONPATH"
- (string-append add-path
- (if old-path (string-append ":" old-path) "")))
- #t))
+ (let ((old-path (getenv "GUIX_PYTHONPATH"))
+ (new-path (site-packages inputs outputs)))
+ (setenv "GUIX_PYTHONPATH"
+ (string-append new-path
+ (if old-path (string-append ":" old-path) "")))))
(define* (install #:key inputs outputs (configure-flags '()) use-setuptools?
#:allow-other-keys)