[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
93/131: gnu: python-cheetah: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
93/131: gnu: python-cheetah: Do not set PYTHONPATH. |
Date: |
Fri, 29 Jan 2021 09:22:11 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 630a3d046ac981b22eca09e3cc48094212a16a87
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 ee0a93b..e4966c1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14490,43 +14490,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/")
- 108/131: gnu: python-gunicorn: Do not set PYTHONPATH., (continued)
- 108/131: gnu: python-gunicorn: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 112/131: gnu: Adjust package collection to Wrap using GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 115/131: gnu: assword: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 91/131: gnu: python-validictory: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 95/131: gnu: python-rfc3986: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 123/131: gnu: roguebox-adventures: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 121/131: gnu: freecad: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 113/131: gnu: enjarify: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 131/131: gnu: python-attrs: Update to 20.3.0., guix-commits, 2021/01/29
- 92/131: gnu: python-pyelftools: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 93/131: gnu: python-cheetah: Do not set PYTHONPATH.,
guix-commits <=
- 94/131: gnu: python-pbkdf2: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 105/131: gnu: python-flask: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 117/131: gnu: gajim: Use GUIX_PYTHONPATH in search path., guix-commits, 2021/01/29
- 130/131: gnu: meson-for-build: Remove package., guix-commits, 2021/01/29
- 87/131: gnu: python-libcst: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 86/131: gnu: python-gevent: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 104/131: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 109/131: doc: Update references to PYTHONPATH and some examples., guix-commits, 2021/01/29
- 106/131: gnu: python-flask-wtf: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 119/131: gnu: python-cloudpickle: Do not alter PYTHONPATH., guix-commits, 2021/01/29