[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: |
Sun, 12 Jan 2025 10:21:44 -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))
- 134/246: gnu: lpsolve: Fix build with gcc-14., (continued)
- 134/246: gnu: lpsolve: Fix build with gcc-14., guix-commits, 2025/01/12
- 140/246: gnu: zxing-cpp: Fix build with gcc-14., guix-commits, 2025/01/12
- 149/246: gnu: podofo: Fix build with gcc-14., guix-commits, 2025/01/12
- 137/246: gnu: firebird: Update to 3.0.12; fixes build with gcc-14., guix-commits, 2025/01/12
- 168/246: gnu: r-acme: Fix build with gcc-14., guix-commits, 2025/01/12
- 165/246: gnu: uwsgi: Update to 2.0.28; fixes build with gcc-14., guix-commits, 2025/01/12
- 173/246: gnu: python-datrie: Fix build with gcc-14., guix-commits, 2025/01/12
- 178/246: gnu: ghc-7.10.3: Build with gcc-13., guix-commits, 2025/01/12
- 181/246: gnu: perl-tk: Build with gcc-12., guix-commits, 2025/01/12
- 180/246: Revert "gnu: perl-tk: Fix build with gcc-14.", guix-commits, 2025/01/12
- 186/246: gnu: python-pythran: Update to 0.17.0.,
guix-commits <=
- 192/246: gnu: gnome-font-viewer: Fix build with gcc-14., guix-commits, 2025/01/12
- 199/246: gnu: mpg321: Fix build with gcc-14., guix-commits, 2025/01/12
- 208/246: Revert "gnu: openexr: Update to 3.3.2; fixes build with gcc-14.", guix-commits, 2025/01/12
- 212/246: gnu: libbraille: Fix build with gcc-14., guix-commits, 2025/01/12
- 213/246: gnu: pidgin: Fix build with gcc-14., guix-commits, 2025/01/12
- 215/246: gnu: folks: Fix build with gcc-14., guix-commits, 2025/01/12
- 227/246: gnu: python-h5py: Fix build with gcc-14., guix-commits, 2025/01/12
- 234/246: gnu: Add python-tiny-proxy., guix-commits, 2025/01/12
- 233/246: gnu: python-tables: Fix reference to library., guix-commits, 2025/01/12
- 235/246: gnu: python-socks: Update to 2.6.1., guix-commits, 2025/01/12