guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

62/163: gnu: python-django-statici18n: Do not read PYTHONPATH.


From: guix-commits
Subject: 62/163: gnu: python-django-statici18n: Do not read PYTHONPATH.
Date: Mon, 25 Jan 2021 02:01:31 -0500 (EST)

apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.

commit 1ff4d9fde0b79345c7b5d2b57fb8ffd86d02d161
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:31:20 2021 -0500

    gnu: python-django-statici18n: Do not read PYTHONPATH.
    
    * gnu/packages/django.scm (python-django-statici18n)
    [phases]{check}: Do not read PYTHONPATH from environment.  Do not set
    build/lib explicitly (the install site path is already in the Guix
    PYTHONPATH).
---
 gnu/packages/django.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index f25dd20..75a1121 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -935,9 +935,7 @@ name is purely coincidental.")
      '(#:phases (modify-phases %standard-phases
                   (replace 'check
                     (lambda _
-                      (setenv "PYTHONPATH"
-                              (string-append 
"./tests/test_project:./build/lib:"
-                                             (getenv "PYTHONPATH")))
+                      (setenv "PYTHONPATH" "./tests/test_project")
                       (setenv "DJANGO_SETTINGS_MODULE" "project.settings")
                       (invoke "pytest" "-vv"))))))
     (native-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]