[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
186/246: gnu: python-pythran: Update to 0.17.0.
From: |
guix-commits |
Subject: |
186/246: gnu: python-pythran: Update to 0.17.0. |
Date: |
Mon, 13 Jan 2025 03:06:35 -0500 (EST) |
janneke pushed a commit to branch core-packages-team
in repository guix.
commit 87a590067b39bb5f1e3bf8286038ff18212d10a7
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 31af9d50a5..36894f000a 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1665,49 +1665,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))
- 145/246: gnu: vpnc-scripts: Fix build with gcc-14., (continued)
- 145/246: gnu: vpnc-scripts: Fix build with gcc-14., guix-commits, 2025/01/13
- 156/246: gnu: zeromq: Update to 4.3.5; fixes build with gcc-14., guix-commits, 2025/01/13
- 159/246: gnu: bedtools: Update to 2.31.1; fixes build with gcc-14., guix-commits, 2025/01/13
- 165/246: gnu: uwsgi: Update to 2.0.28; fixes build with gcc-14., guix-commits, 2025/01/13
- 170/246: Revert "gnu: r-rcppparallel: Fix build with gcc-14.", guix-commits, 2025/01/13
- 173/246: gnu: python-datrie: Fix build with gcc-14., guix-commits, 2025/01/13
- 174/246: gnu: mpfi: Fix build with gcc-14., guix-commits, 2025/01/13
- 176/246: gnu: gf2x: Fix build with gcc-14., guix-commits, 2025/01/13
- 180/246: Revert "gnu: perl-tk: Fix build with gcc-14.", guix-commits, 2025/01/13
- 183/246: gnu: python-geventhttpclient: Update to 2.3.3; fixes build with gcc-14., guix-commits, 2025/01/13
- 186/246: gnu: python-pythran: Update to 0.17.0.,
guix-commits <=
- 191/246: gnu: ghc-8.4.4: Build with gcc-13., guix-commits, 2025/01/13
- 195/246: gnu: xdg-desktop-portal-1.16.0: Fix build., guix-commits, 2025/01/13
- 194/246: gnu: Add gettext-minimal-0.21., guix-commits, 2025/01/13
- 204/246: gnu: sdl-image-1.2.12: Fix build with gcc-14., guix-commits, 2025/01/13
- 215/246: gnu: folks: Fix build with gcc-14., guix-commits, 2025/01/13
- 225/246: gnu: freeipmi: Fix build with gcc-14., guix-commits, 2025/01/13
- 199/246: gnu: mpg321: Fix build with gcc-14., guix-commits, 2025/01/13
- 234/246: gnu: Add python-tiny-proxy., guix-commits, 2025/01/13
- 214/246: gnu: gsequencer: Update to 7.4.12; fixes build with gcc-14., guix-commits, 2025/01/13
- 231/246: gnu: beancount: Fix build., guix-commits, 2025/01/13