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: Mon, 1 Feb 2021 11:56:43 -0500 (EST)

apteryx pushed a commit to branch core-updates
in repository guix.

commit de66b6fedbe61eca5199bdd445ed69491c025ccd
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]