guix-commits
[Top][All Lists]
Advanced

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

43/131: gnu: python-django-pipeline: Do not alter PYTHONPATH.


From: guix-commits
Subject: 43/131: gnu: python-django-pipeline: Do not alter PYTHONPATH.
Date: Fri, 29 Jan 2021 09:21:54 -0500 (EST)

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

commit a3c709d8f4f52ac5704e576cb22142a03d24d990
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:25:24 2021 -0500

    gnu: python-django-pipeline: Do not alter PYTHONPATH.
    
    * gnu/packages/django.scm (python-django-pipeline): Remove trailing #t.
    [phases]{check}: Do not alter PYTHONPATH.
---
 gnu/packages/django.scm | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 1a21e17..6feca05 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -746,14 +746,9 @@ entries, photos, book chapters, or anything else.")
                 (which "env")))))
          (replace 'check
            (lambda*(#:key tests? #:allow-other-keys)
-             (or
-              (not tests?)
-              (begin
-                (setenv "PYTHONPATH"
-                        (string-append (getcwd) ":"
-                                       (getenv "PYTHONPATH")))
-                (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
-                (invoke "django-admin" "test" "tests"))))))))
+             (when tests?
+               (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
+               (invoke "django-admin" "test" "tests")))))))
     (native-inputs
      `(("python-django" ,python-django)))
     (propagated-inputs



reply via email to

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