diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-01-23 00:25:24 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2021-02-01 11:53:49 -0500 |
commit | de66b6fedbe61eca5199bdd445ed69491c025ccd (patch) | |
tree | eb98e2a61504974ee74db88852be584cd79b680b /gnu | |
parent | 905127eb186e664566d622fe20dbe44da97bde7d (diff) |
gnu: python-django-pipeline: Do not alter PYTHONPATH.
* gnu/packages/django.scm (python-django-pipeline): Remove trailing #t.
[phases]{check}: Do not alter PYTHONPATH.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/django.scm | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 1a21e17262..6feca05f92 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 |