[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
88/105: gnu: python-pythran: Update to 0.17.0.
From: |
guix-commits |
Subject: |
88/105: gnu: python-pythran: Update to 0.17.0. |
Date: |
Sat, 21 Dec 2024 11:56:50 -0500 (EST) |
rekado pushed a commit to branch python-team
in repository guix.
commit 66e100260e2a5c43161ef9360f2110435098045b
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 d532ceffe4..7bb59f7b76 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1670,49 +1670,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))
- 83/105: gnu: python-dnspython: Update to 2.7.0., (continued)
- 83/105: gnu: python-dnspython: Update to 2.7.0., guix-commits, 2024/12/21
- 85/105: gnu: linkchecker: Update to 10.5.0., guix-commits, 2024/12/21
- 91/105: gnu: python-gevent: Update to 24.11.1., guix-commits, 2024/12/21
- 92/105: gnu: python-eventlet: Update to 0.38.2., guix-commits, 2024/12/21
- 100/105: gnu: macs-3: Add missing input., guix-commits, 2024/12/21
- 96/105: gnu: python-httpretty: Enable tests., guix-commits, 2024/12/21
- 102/105: gnu: Add rust-jiter-0.2., guix-commits, 2024/12/21
- 94/105: gnu: python-geventhttpclient: Update to 2.3.3., guix-commits, 2024/12/21
- 101/105: gnu: python-annotated-types: Update to 0.7.0., guix-commits, 2024/12/21
- 105/105: gnu: pyscenic: Update to 0.12.1-1.eaf23eb., guix-commits, 2024/12/21
- 88/105: gnu: python-pythran: Update to 0.17.0.,
guix-commits <=
- 90/105: gnu: python-pandas-2: Restrict number of test processes., guix-commits, 2024/12/21
- 47/105: gnu: python-awkward-cpp: Update to 43., guix-commits, 2024/12/21
- 51/105: gnu: Add python-repoze-lru., guix-commits, 2024/12/21
- 57/105: gnu: Add python-devpi-server., guix-commits, 2024/12/21
- 66/105: gnu: python-colorama: Update to 0.4.6., guix-commits, 2024/12/21
- 68/105: gnu: python-platformdirs: Update to 4.3.6., guix-commits, 2024/12/21
- 35/105: gnu: python-cattrs: Update to 24.1.2., guix-commits, 2024/12/21
- 39/105: gnu: python-qdldl: Add missing input., guix-commits, 2024/12/21
- 59/105: gnu: Add python-devpi-process., guix-commits, 2024/12/21
- 60/105: gnu: python-tox: Update to 4.23.2., guix-commits, 2024/12/21