[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
51/187: gnu: python-pythran: Update to 0.17.0.
From: |
guix-commits |
Subject: |
51/187: gnu: python-pythran: Update to 0.17.0. |
Date: |
Wed, 8 Jan 2025 10:15:42 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 89a5e921252a122310b058fc5a7674af9d8d49b9
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Dec 17 23:05:21 2024 +0100
gnu: python-pythran: Update to 0.17.0.
* gnu/packages/python-science.scm (python-pythran): Update to 0.17.0.
[build-system]: Use pyproject-build-system.
[source]: Remove obsolete snippet.
[arguments]: Remove phase 'do-not-install-third-parties and custom 'check
phase; use #:test-flags and add 'pre-check phase.
[native-inputs]: Add python-setuptools and python-wheel.
Change-Id: I49ebdd21cfb0668dd84f0d12c460a86ed694c7d6
---
gnu/packages/python-science.scm | 63 +++++++++++++++++++----------------------
1 file changed, 29 insertions(+), 34 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 36950a8638..718c482037 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1666,49 +1666,44 @@ y, z)}.")
(define-public python-pythran
(package
(name "python-pythran")
- (version "0.11.0")
+ (version "0.17.0")
(home-page "https://github.com/serge-sans-paille/pythran")
(source (origin
(method git-fetch)
(uri (git-reference (url home-page) (commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0cm7wfcyvkp1wmq7n1lyf2d3sj6158jf63bagjpjmfnjwij19n0p"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove bundled Boost and xsimd.
- (delete-file-recursively "third_party")))))
- (build-system python-build-system)
+ (base32
"1rm9lfbz5qvah1m0rr5gaaahkf1gzwlw1ysvym2l2yh0clglav94"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'do-not-install-third-parties
- (lambda _
- (substitute* "setup.py"
- (("third_parties = .*")
- "third_parties = []\n"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Remove compiler flag that trips newer GCC:
- ;; https://github.com/serge-sans-paille/pythran/issues/908
- (substitute* "pythran/tests/__init__.py"
- (("'-Wno-absolute-value',")
- ""))
- (setenv "HOME" (getcwd))
- ;; This setup is modelled after the upstream CI system.
- (call-with-output-file ".pythranrc"
- (lambda (port)
- (format port "[compiler]\nblas=openblas~%")))
- (invoke "pytest" "-vv"
- (string-append "--numprocesses="
- (number->string
- (parallel-job-count)))
- "pythran/tests/test_cases.py")))))))
+ (list
+ #:test-flags
+ '(list (string-append "--numprocesses=" (number->string
+ (parallel-job-count)))
+ ;; XXX There are lots of tests of the format
+ ;; pythran/tests/test_*.py, but they cannot easily be selected.
+ "pythran/tests/test_typing.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; Remove compiler flag that trips newer GCC:
+ ;; https://github.com/serge-sans-paille/pythran/issues/908
+ (substitute* "pythran/tests/__init__.py"
+ (("'-Wno-absolute-value',") ""))
+ (setenv "HOME" (getcwd))
+ ;; This setup is modelled after the upstream CI system.
+ (call-with-output-file ".pythranrc"
+ (lambda (port)
+ (format port "[compiler]\nblas=openblas~%")))))))))
(native-inputs
;; For tests.
- (list openblas python-pytest python-pytest-xdist))
+ (list openblas
+ python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(propagated-inputs
(list boost xsimd ;headers need to be available
python-beniget python-gast python-numpy python-ply))
- 148/187: gnu: Add python-inline-snapshot., (continued)
- 148/187: gnu: Add python-inline-snapshot., guix-commits, 2025/01/08
- 151/187: gnu: Add rust-jiter-0.7., guix-commits, 2025/01/08
- 154/187: gnu: python-pydantic-2: Update to 2.10.4., guix-commits, 2025/01/08
- 166/187: gnu: python-starsessions: Disable one more test., guix-commits, 2025/01/08
- 179/187: gnu: python-flask-htpasswd: Update to 0.5.0., guix-commits, 2025/01/08
- 29/187: gnu: python-extension-helpers: Update to 1.2.0., guix-commits, 2025/01/08
- 33/187: gnu: python-virtualenv: Update to 20.28.0., guix-commits, 2025/01/08
- 37/187: gnu: python-uvicorn: Update to 0.34.0., guix-commits, 2025/01/08
- 40/187: gnu: python-a2wsgi: Disable one test., guix-commits, 2025/01/08
- 46/187: gnu: python-dnspython: Update to 2.7.0., guix-commits, 2025/01/08
- 51/187: gnu: python-pythran: Update to 0.17.0.,
guix-commits <=
- 56/187: gnu: python-gevent: Propagate greenlet., guix-commits, 2025/01/08
- 66/187: gnu: python-pydantic-2: Update to 2.7.0., guix-commits, 2025/01/08
- 54/187: gnu: python-gevent: Update to 24.11.1., guix-commits, 2025/01/08
- 65/187: gnu: python-pydantic-core: Update to 2.18.1., guix-commits, 2025/01/08
- 67/187: gnu: pyscenic: Update to 0.12.1-1.eaf23eb., guix-commits, 2025/01/08
- 72/187: gnu: Add python-types-simplejson., guix-commits, 2025/01/08
- 73/187: gnu: beancount: Fix build., guix-commits, 2025/01/08
- 76/187: gnu: python-cachecontrol: Update to 0.14.1., guix-commits, 2025/01/08
- 78/187: gnu: python-schema-salad: Update to 8.8.20241206093842., guix-commits, 2025/01/08
- 80/187: gnu: python-cwl-utils: Add missing inputs., guix-commits, 2025/01/08