[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/131: gnu: python-django: Do not alter PYTHONPATH.
From: |
guix-commits |
Subject: |
40/131: gnu: python-django: Do not alter PYTHONPATH. |
Date: |
Fri, 29 Jan 2021 09:21:53 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 24d65d8c04df4d9c513863ade5104e700d7ef954
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 23 00:19:29 2021 -0500
gnu: python-django: Do not alter PYTHONPATH.
* gnu/packages/django.scm (python-django): Remove trailing #t.
[phases]{pre-check,check}: Do not alter PYTHONPATH.
---
gnu/packages/django.scm | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index aa4411c..091d757 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -74,23 +74,10 @@
(substitute* "tests/settings_tests/tests.py"
((".*def test_incorrect_timezone.*" all)
(string-append " @unittest.skipIf(True, 'Disabled by
Guix')\n"
- all)))
-
- ;; Preserve the PYTHONPATH created by Guix when running the tests.
- (substitute* "tests/admin_scripts/tests.py"
- (("python_path = \\[")
- (string-append "python_path = ['"
- (string-join
- (string-split (getenv "PYTHONPATH") #\:)
- "','")
- "', ")))
-
- #t))
+ all)))))
(replace 'check
(lambda _
(with-directory-excursion "tests"
- (setenv "PYTHONPATH"
- (string-append "..:" (getenv "PYTHONPATH")))
(invoke "python" "runtests.py"
;; By default tests run in parallel, which may cause
;; various race conditions. Run sequentially for
- 68/131: gnu: python-typed-ast: Do not set PYTHONPATH., (continued)
- 68/131: gnu: python-typed-ast: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 71/131: gnu: python-hdf4: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 64/131: gnu: python-pynacl: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 66/131: gnu: python-pathos: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 63/131: gnu: python-pytest-isort: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 62/131: gnu: pagekit: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 75/131: gnu: python-text-unidecode: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 76/131: gnu: python-markupsafe: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 77/131: gnu: python-jinja2: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 79/131: gnu: python-matplotlib-documentation: Do not read PYTHONPATH., guix-commits, 2021/01/29
- 40/131: gnu: python-django: Do not alter PYTHONPATH.,
guix-commits <=
- 44/131: gnu: python-django-sortedm2m: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 70/131: gnu: python-pymediainfo: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 82/131: gnu: python-flake8-polyfill: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 96/131: gnu: python-apispec: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 73/131: gnu: python-click: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 78/131: gnu: python-pygithub: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 83/131: gnu: python-msgpack: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 56/131: gnu: python-fenics-ufl: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 89/131: gnu: python-odfpy: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 99/131: gnu: python-aiohttp: Do not set PYTHONPATH., guix-commits, 2021/01/29