[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
31/131: gnu: python-cffi: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
31/131: gnu: python-cffi: Do not set PYTHONPATH. |
Date: |
Fri, 29 Jan 2021 09:21:50 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 8d43fd2fe2fa316aca3bda957643aef7bcef86e9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 22 16:52:32 2021 -0500
gnu: python-cffi: Do not set PYTHONPATH.
* gnu/packages/libffi.scm (python-cffi): Remove trailing #t.
[phases]{check}: Do not set PYTHONPATH.
---
gnu/packages/libffi.scm | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm
index 998df6c..0f549bd 100644
--- a/gnu/packages/libffi.scm
+++ b/gnu/packages/libffi.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
-;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2019, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 John Doe <dftxbs3e@free.fr>
;;;
;;; This file is part of GNU Guix.
@@ -128,20 +128,10 @@ conversions for values passed between the two languages.")
`(("pkg-config" ,pkg-config)
("python-pytest" ,python-pytest)))
(arguments
- `(#:modules ((ice-9 ftw)
- (srfi srfi-26)
- (guix build utils)
- (guix build python-build-system))
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
- (setenv "PYTHONPATH"
- (string-append
- (getenv "PYTHONPATH")
- ":" (getcwd) "/build/"
- (car (scandir "build" (cut string-prefix? "lib." <>)))))
-
;; XXX The "normal" approach of setting CC and friends does
;; not work here. Is this the correct way of doing things?
(substitute* "testing/embedding/test_basic.py"
@@ -152,8 +142,7 @@ conversions for values passed between the two languages.")
"linker_so='gcc -shared')")))
(substitute* "testing/cffi0/test_ownlib.py"
(("\"cc testownlib") "\"gcc testownlib"))
- (invoke "py.test" "-v" "c/" "testing/")
- #t))
+ (invoke "py.test" "-v" "c/" "testing/")))
(add-before 'check 'patch-paths-of-dynamically-loaded-libraries
(lambda* (#:key inputs #:allow-other-keys)
;; Shared libraries should be referred by their absolute path as
@@ -176,8 +165,7 @@ conversions for values passed between the two languages.")
(format #f "lib_m = ['~a']" libm)))
(substitute* "c/test_c.py"
(("find_and_load_library\\(['\"]{1}c['\"]{1}")
- (format #f "find_and_load_library('~a'" libc)))
- #t))))))
+ (format #f "find_and_load_library('~a'" libc)))))))))
(home-page "https://cffi.readthedocs.io/")
(synopsis "Foreign function interface for Python")
(description "Foreign Function Interface for Python calling C code.")
- 30/131: gnu: python-xmlschema: Do not set PYTHONPATH., (continued)
- 30/131: gnu: python-xmlschema: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 13/131: gnu: python-black: Remove blackd., guix-commits, 2021/01/29
- 19/131: gnu: python-traceback2: Add missing dependency., guix-commits, 2021/01/29
- 23/131: gnu: intel-xed: Adjust build phase., guix-commits, 2021/01/29
- 18/131: gnu: python-packaging-bootstrap: Remove dependency., guix-commits, 2021/01/29
- 24/131: gnu: python-pybedtools: Streamline following Python build system changes., guix-commits, 2021/01/29
- 26/131: gnu: bamm: Update following changes to the Python build system., guix-commits, 2021/01/29
- 28/131: gnu: python-scanpy: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 29/131: gnu: python-loompy: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 20/131: gnu: python2-packaging-bootstrap: Add missing dependency, guix-commits, 2021/01/29
- 31/131: gnu: python-cffi: Do not set PYTHONPATH.,
guix-commits <=
- 33/131: gnu: ganeti: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 37/131: gnu: tensorflow: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 38/131: gnu: ghmm: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 32/131: gnu: linkchecker: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 34/131: gnu: behave: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 39/131: gnu: python-rpy2: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 35/131: gnu: python-pyhamcrest: Update to 2.0.2., guix-commits, 2021/01/29
- 42/131: gnu: python-django-contact-form: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 45/131: gnu: python-django-appconf: Do not alter PYTHONPATH., guix-commits, 2021/01/29
- 46/131: gnu: python-django-statici18n: Do not read PYTHONPATH., guix-commits, 2021/01/29