[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
148/163: gnu: python-cheetah: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
148/163: gnu: python-cheetah: Do not set PYTHONPATH. |
Date: |
Mon, 25 Jan 2021 02:02:00 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 59d06fc816e8e503518f13bb15279541e5736aba
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 10:04:34 2021 -0500
gnu: python-cheetah: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-cheetah)
[arguments]: Remove the '#:modules' argument.
[phases]: Delete trailing #t.
{check}: Do not set PATH nor PYTHONPATH.
---
gnu/packages/python-xyz.scm | 36 +++++++++---------------------------
1 file changed, 9 insertions(+), 27 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5b67ec4..58546d9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14474,43 +14474,25 @@ possible on all supported Python versions.")
"0ar5dqjnqaw0c17mymd6xgd81jn9br9fblawr0x438v1571bkaya"))))
(build-system python-build-system)
(arguments
- `(#:modules ((guix build utils)
- (guix build python-build-system)
- (ice-9 ftw)
- (srfi srfi-1)
- (srfi srfi-26))
- #:phases (modify-phases %standard-phases
+ `(#:phases (modify-phases %standard-phases
(add-after 'unpack 'use-absolute-python
(lambda _
(substitute* "Cheetah/CheetahWrapper.py"
(("#!/usr/bin/env python")
- (string-append "#!" (which "python"))))
- #t))
+ (string-append "#!" (which "python"))))))
(add-after 'unpack 'fix-tests
(lambda _
(substitute* "Cheetah/Tests/ImportHooks.py"
(("os.path.dirname\\(__file__\\)")
- (string-append "'" (getcwd) "/Cheetah/Tests'")))
- #t))
+ (string-append "'" (getcwd) "/Cheetah/Tests'")))))
(replace 'check
(lambda _
- (let ((cwd (getcwd)))
- (setenv "PYTHONPATH"
- (string-append
- cwd "/build/"
- (find (cut string-prefix? "lib" <>)
- (scandir (string-append cwd "/build")))
- ":" (getenv "PYTHONPATH")))
- (setenv "PATH"
- (string-append (getenv "PATH")
- ":" cwd "/bin"))
- (setenv "TMPDIR" "/tmp")
-
- (substitute* "Cheetah/Tests/Test.py"
- (("unittest.TextTestRunner\\(\\)")
- "unittest.TextTestRunner(verbosity=2)"))
-
- (invoke "python" "Cheetah/Tests/Test.py")))))))
+ (setenv "TMPDIR" "/tmp")
+ (substitute* "Cheetah/Tests/Test.py"
+ (("unittest.TextTestRunner\\(\\)")
+ "unittest.TextTestRunner(verbosity=2)"))
+
+ (invoke "python" "Cheetah/Tests/Test.py"))))))
(propagated-inputs
`(("python-markdown" ,python-markdown))) ;optional
(home-page "https://cheetahtemplate.org/")
- 89/163: gnu: python-fenics-fiat: Do not alter PYTHONPATH., (continued)
- 89/163: gnu: python-fenics-fiat: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 105/163: gnu: gnome-music: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 93/163: gnu: byobu: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 99/163: gnu: pagekit: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 98/163: gnu: blueman: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 91/163: gnu: python-fenics-ffc: Do not alter PYTHONPATH., guix-commits, 2021/01/25
- 95/163: gnu: rapid-photo-downloader: Wrap with the new Guix PYTHONPATH., guix-commits, 2021/01/25
- 129/163: gnu: python-jsonschema: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 128/163: gnu: python-click: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 139/163: gnu: python-moto: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 148/163: gnu: python-cheetah: Do not set PYTHONPATH.,
guix-commits <=
- 149/163: gnu: python-pbkdf2: Do not set PYTHONPATH., guix-commits, 2021/01/25
- 150/163: gnu: python-rfc3986: Do not set PYTHONPATH., guix-commits, 2021/01/25