[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/93: Revert "gnu: python-numpy: Update to 1.26.0."
From: |
guix-commits |
Subject: |
53/93: Revert "gnu: python-numpy: Update to 1.26.0." |
Date: |
Sun, 5 May 2024 16:44:55 -0400 (EDT) |
rekado pushed a commit to branch wip-python-team
in repository guix.
commit 1295abd0afa98680ee18b81504119e67dc07a5bd
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu May 2 13:43:58 2024 +0200
Revert "gnu: python-numpy: Update to 1.26.0."
numba cannot use numpy > 1.24.
This reverts commit 6b8efd211fbd619e80628d2a78f99c6afc18723e.
---
gnu/packages/python-xyz.scm | 97 ++++++++++++++++++++-------------------------
1 file changed, 43 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cb4a6c87da..84266073f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -8240,7 +8240,7 @@ writing C extensions for Python as easy as Python
itself.")
(define-public python-numpy
(package
(name "python-numpy")
- (version "1.26.0")
+ (version "1.23.2")
(source
(origin
(method url-fetch)
@@ -8249,52 +8249,15 @@ writing C extensions for Python as easy as Python
itself.")
version "/numpy-" version ".tar.gz"))
(sha256
(base32
- "1pvz1qcz7pvc13fsisfiz9lk35bk3jglkdnnp3iay5dzx27wfgzr"))))
- (build-system pyproject-build-system)
+ "00bx3idjwhmzkdawg2dx1bp0316ig37jfx0dm82bvyv1hbj013dp"))))
+ (build-system python-build-system)
(arguments
(list
- #:test-flags
- #~(list "-k" (string-append
- ;; These tests may fail on 32-bit systems (see:
- ;; https://github.com/numpy/numpy/issues/18387).
- "not test_float_remainder_overflow "
- "and not test_pareto "
- ;; The 'test_rint_big_int' test fails on older
- ;; x86_64 CPUs such as the Core 2 Duo (see:
- ;; https://github.com/numpy/numpy/issues/22170).
- "and not test_rint_big_int "
- ;; The huge_array test is too large for 32-bit (see:
- ;; https://bugs.gentoo.org/843599 and
- ;; https://bugs.gentoo.org/846548).
- ;; TestKind.test_all is a Fortran type failure
- ;; that may be toolchain or environment related.
- #$@(if (or (target-x86?) (target-arm32?))
- `(" and not test_identityless_reduction_huge_array"
- " and not (TestKind and test_all)")
- '())
- ;; This test fails when building from aarch64-linux.
- #$@(if (target-arm32?)
- `(" and not test_features")
- '())
- ;; These tests seem to fail on machines without
- ;; an FPU is still under investigation upstream.
- ;; https://github.com/numpy/numpy/issues/20635
- #$@(if (target-riscv64?)
- `(" and not test_float"
- " and not test_fpclass")
- '())))
#:modules '((guix build utils)
(guix build python-build-system)
- (guix build pyproject-build-system)
(ice-9 format))
#:phases
#~(modify-phases %standard-phases
- ;; The meson build backend requires a bundled modified version of
- ;; meson.
- (add-after 'unpack 'use-setuptools-backend
- (lambda _
- (delete-file "pyproject.toml")
- (rename-file "pyproject.toml.setuppy" "pyproject.toml")))
(add-before 'build 'parallelize-build
(lambda _
(setenv "NPY_NUM_BUILD_JOBS"
@@ -8323,24 +8286,50 @@ include_dirs = ~:*~a/include~%"
(substitute* "numpy/core/tests/test_cpu_features.py"
(("/bin/true") (search-input-file inputs "bin/true")))))
(replace 'check
- (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (lambda* (#:key tests? outputs inputs #:allow-other-keys)
(when tests?
- (apply invoke "./runtests.py" "-vv" "--no-build" "--mode=fast"
- "-j" (number->string (parallel-job-count))
- ;; Contrary to scipy, the runtests.py script of numpy
- ;; does *not* automatically provide -n when -j is used
- ;; (see: https://github.com/numpy/numpy/issues/21359).
- "--" "-n" (number->string (parallel-job-count))
- test-flags)))))))
- (native-inputs
- (list ;; The presence of the optional gfortran causes the build to fail.
- ;;gfortran
- meson/newer ninja
- python-cython-3
+ (invoke "./runtests.py" "-vv" "--no-build" "--mode=fast"
+ "-j" (number->string (parallel-job-count))
+ ;; Contrary to scipy, the runtests.py script of numpy
+ ;; does *not* automatically provide -n when -j is used
+ ;; (see: https://github.com/numpy/numpy/issues/21359).
+ "--" "-n" (number->string (parallel-job-count))
+ "-k" (string-append
+ ;; These tests may fail on 32-bit systems (see:
+ ;; https://github.com/numpy/numpy/issues/18387).
+ "not test_float_remainder_overflow "
+ "and not test_pareto "
+ ;; The 'test_rint_big_int' test fails on older
+ ;; x86_64 CPUs such as the Core 2 Duo (see:
+ ;; https://github.com/numpy/numpy/issues/22170).
+ "and not test_rint_big_int "
+ ;; The huge_array test is too large for 32-bit
(see:
+ ;; https://bugs.gentoo.org/843599 and
+ ;; https://bugs.gentoo.org/846548).
+ ;; TestKind.test_all is a Fortran type failure
+ ;; that may be toolchain or environment related.
+ #$@(if (or (target-x86?) (target-arm32?))
+ `(" and not
test_identityless_reduction_huge_array"
+ " and not (TestKind and test_all)")
+ '())
+ ;; This test fails when building from
aarch64-linux.
+ #$@(if (target-arm32?)
+ `(" and not test_features")
+ '())
+ ;; These tests seem to fail on machines without
+ ;; an FPU is still under investigation upstream.
+ ;; https://github.com/numpy/numpy/issues/20635
+ #$@(if (target-riscv64?)
+ `(" and not test_float"
+ " and not test_fpclass")
+ '())))))))))
+ (native-inputs
+ (list python-cython
python-hypothesis
python-pytest
python-pytest-xdist
- python-typing-extensions))
+ python-typing-extensions
+ gfortran))
(inputs (list bash openblas))
(home-page "https://numpy.org")
(synopsis "Fundamental package for scientific computing with Python")
- 20/93: gnu: Add python-ecos., (continued)
- 20/93: gnu: Add python-ecos., guix-commits, 2024/05/05
- 29/93: gnu: python-pyjanitor: Update to 0.27.0., guix-commits, 2024/05/05
- 25/93: gnu: python-pandas: Default to version 2.x., guix-commits, 2024/05/05
- 26/93: gnu: python-xarray: Disable tests that are known to fail., guix-commits, 2024/05/05
- 28/93: gnu: tadbit: Use G-expression., guix-commits, 2024/05/05
- 32/93: gnu: python-pandas-2: Fix version., guix-commits, 2024/05/05
- 35/93: gnu: Add apache-orc., guix-commits, 2024/05/05
- 27/93: gnu: r-reticulate: Update to 1.36.1., guix-commits, 2024/05/05
- 43/93: gnu: Add python-scikit-build-core., guix-commits, 2024/05/05
- 46/93: gnu: Add python-array-api-compat., guix-commits, 2024/05/05
- 53/93: Revert "gnu: python-numpy: Update to 1.26.0.",
guix-commits <=
- 55/93: gnu: python-pandas-stubs: Accept numpy 1.23., guix-commits, 2024/05/05
- 57/93: gnu: python-umap-learn: Disable failing test., guix-commits, 2024/05/05
- 58/93: gnu: python-dask: Propagate python-dask-expr., guix-commits, 2024/05/05
- 15/93: gnu: Add python-clarabel., guix-commits, 2024/05/05
- 56/93: gnu: python-umap-learn: Update to 0.5.6., guix-commits, 2024/05/05
- 80/93: gnu: python-statmake: Adjust tests and version checks., guix-commits, 2024/05/05
- 86/93: gnu: python-plotnine: Disable test because of harmless warning., guix-commits, 2024/05/05
- 89/93: gnu: python-pingouin: Update to 0.5.4., guix-commits, 2024/05/05
- 30/93: gnu: python-cython-3: Update to 3.0.8., guix-commits, 2024/05/05
- 33/93: gnu: python-tabulate: Update to 0.9.0., guix-commits, 2024/05/05