[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: gnu: python-cffi: Update to 1.10.0.
From: |
Marius Bakke |
Subject: |
04/08: gnu: python-cffi: Update to 1.10.0. |
Date: |
Mon, 3 Jul 2017 20:53:02 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 029933cf79daf9faed9160f58f390c3e7384a33e
Author: Marius Bakke <address@hidden>
Date: Mon Jul 3 01:22:52 2017 +0200
gnu: python-cffi: Update to 1.10.0.
* gnu/packages/python.scm (python-cffi): Update to 1.10.0.
[arguments]<#:phases>: Patch distutils.ccompiler call to use "gcc". Patch
another hard-coded cc invocation. Adjust `py.test` invocation per README.
---
gnu/packages/python.scm | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a55cdaf..d190223 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4763,13 +4763,13 @@ a front-end for C compilers or analysis tools.")
(define-public python-cffi
(package
(name "python-cffi")
- (version "1.4.2")
+ (version "1.10.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cffi" version))
(sha256
- (base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
+ (base32 "1mffyilq4qycm8gs4wkgb18rnqil8a9blqq77chdlshzxc8jkc5k"))))
(build-system python-build-system)
(outputs '("out" "doc"))
(inputs
@@ -4794,7 +4794,18 @@ a front-end for C compilers or analysis tools.")
(getenv "PYTHONPATH")
":" (getcwd) "/build/"
(car (scandir "build" (cut string-prefix? "lib." <>)))))
- (zero? (system* "py.test" "-v"))))
+
+ ;; 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"
+ (("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
+ (string-append "c = distutils.ccompiler.new_compiler();"
+ "c.set_executables(compiler='gcc',"
+ "compiler_so='gcc',linker_exe='gcc',"
+ "linker_so='gcc -shared')")))
+ (substitute* "testing/cffi0/test_ownlib.py"
+ (("'cc testownlib") "'gcc testownlib"))
+ (zero? (system* "py.test" "-v" "c/" "testing/"))))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
- branch master updated (f88eacc -> a8a964d), Marius Bakke, 2017/07/03
- 02/08: gnu: re2: Update to 2017-07-01., Marius Bakke, 2017/07/03
- 01/08: install: Drop redundant package after c0f5eee4b2cc737be222c4ba331d0., Marius Bakke, 2017/07/03
- 03/08: gnu: python-cffi: Really enable tests., Marius Bakke, 2017/07/03
- 04/08: gnu: python-cffi: Update to 1.10.0.,
Marius Bakke <=
- 05/08: gnu: python-cryptography: Update to 1.9., Marius Bakke, 2017/07/03
- 08/08: gnu: python-pylint: Update to 1.7.2., Marius Bakke, 2017/07/03
- 06/08: gnu: python-pyopenssl: Update to 17.1.0., Marius Bakke, 2017/07/03
- 07/08: gnu: python-astroid: Update to 1.5.3., Marius Bakke, 2017/07/03