mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
gnu: python-django-pipeline: Do not alter PYTHONPATH.
* gnu/packages/django.scm (python-django-pipeline): Remove trailing #t. [phases]{check}: Do not alter PYTHONPATH.
This commit is contained in:
parent
905127eb18
commit
de66b6fedb
1 changed files with 3 additions and 8 deletions
|
@ -746,14 +746,9 @@ (define-public python-django-pipeline
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue