[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/131: build/python: Replace PYTHONPATH by GUIX_PYTHONPATH.
From: |
guix-commits |
Subject: |
02/131: build/python: Replace PYTHONPATH by GUIX_PYTHONPATH. |
Date: |
Mon, 1 Feb 2021 11:56:30 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 18e9979970eb3a2cc9e0afca4a64c220ce6ebe5b
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 22 09:39:01 2021 -0500
build/python: Replace PYTHONPATH by GUIX_PYTHONPATH.
* guix/build/python-build-system.scm (add-installed-pythonpath): Replace
"PYTHONPATH" by "GUIX_PYTHONPATH".
---
guix/build/python-build-system.scm | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/guix/build/python-build-system.scm
b/guix/build/python-build-system.scm
index c6c88e6..8e35939 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)
- 04/131: build/python: Add the installation bin directory to PATH., (continued)
- 04/131: build/python: Add the installation bin directory to PATH., guix-commits, 2021/02/01
- 11/131: gnu: python-slugify: Add missing input., guix-commits, 2021/02/01
- 12/131: gnu: python-websockets: Fix Python package name., guix-commits, 2021/02/01
- 07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requirement., guix-commits, 2021/02/01
- 06/131: build/python: Add a sanity check phase., guix-commits, 2021/02/01
- 19/131: gnu: python-traceback2: Add missing dependency., guix-commits, 2021/02/01
- 23/131: gnu: intel-xed: Adjust build phase., guix-commits, 2021/02/01
- 26/131: gnu: bamm: Update following changes to the Python build system., guix-commits, 2021/02/01
- 25/131: gnu: python-pysam: Adjust following Python build system changes., guix-commits, 2021/02/01
- 03/131: build/python: Always add the install prefix to the Guix PYTHONPATH., guix-commits, 2021/02/01
- 02/131: build/python: Replace PYTHONPATH by GUIX_PYTHONPATH.,
guix-commits <=
- 08/131: gnu: python-fixtures-bootstrap: Do not sanity check., guix-commits, 2021/02/01
- 10/131: gnu: python-pyfakefs: Disable unreliable test, guix-commits, 2021/02/01
- 17/131: gnu: python-automat: Remove broken console script., guix-commits, 2021/02/01
- 14/131: gnu: python-traitlets: Add missing input., guix-commits, 2021/02/01
- 20/131: gnu: python2-packaging-bootstrap: Add missing dependency, guix-commits, 2021/02/01
- 27/131: gnu: python-screed: Adjust following Python build system changes., guix-commits, 2021/02/01
- 28/131: gnu: python-scanpy: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 18/131: gnu: python-packaging-bootstrap: Remove dependency., guix-commits, 2021/02/01
- 22/131: gnu: solaar: Do not read PYTHONPATH from environment., guix-commits, 2021/02/01
- 24/131: gnu: python-pybedtools: Streamline following Python build system changes., guix-commits, 2021/02/01