guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit dd33ce034b1b727ee9c0b4bb0c7990cea1439e59
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Jan 17 23:01:07 2026 +0000
gnu: python-numpy-1: Use python-setuptools.
* gnu/packages/python-xyz.scm (python-numpy-1)
[phases]{delete-test-files}: New phases.
{check}: Skip 2 more tests expecting older setuptools.
[native-inputs]: Remove python-setuptools-67, and python-wheel-0.40; add
python-setuptools.
Change-Id: I658ccde3c32daca20ecd2716ae245077decdde26
---
gnu/packages/python-xyz.scm | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9e3967044b..350c330796 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11032,11 +11032,21 @@ capabilities.")
(patches (search-patches "python-numpy-gcc-14.patch"))))
(arguments
(list
+ ;; tests: 35652 passed, 2403 skipped, 32 xfailed, 2 xpassed
#:modules '((guix build utils)
(guix build pyproject-build-system)
(ice-9 format))
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'delete-test-files
+ (lambda _
+ ;; These tests depend on older setuptools, see:
+ ;; <https://github.com/numpy/numpy/issues/27531>.
+ ;;
+ ;; E ModuleNotFoundError: No module named
+ ;; 'distutils.msvccompiler'
+ (delete-file "numpy/distutils/tests/test_mingw32ccompiler.py")
+ (delete-file "numpy/distutils/tests/test_system_info.py")))
;; XXX: It fails with an issue "'fenv_t' has not been declared..."
;; when the gfortran header is used. Remove gfortran from
;; CPLUS_INCLUDE_PATH as a workaround. Taken from
@@ -11154,7 +11164,12 @@ include_dirs = ~:*~a/include~%"
" and not test_square_values"
" and not test_sum"
" and not test_switch_owner"
- " and not test_thread_locality")))))
+ " and not test_thread_locality"
+
+ ;; These tests depend on older setuptools, see:
+ ;; <https://github.com/numpy/numpy/issues/27531>.
+ " and not test_api_importable"
+ " and not test_all_modules_are_expected_2")))))
;; See comment for custom python-numpy wrap phase above.
(replace 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys)
@@ -11172,9 +11187,8 @@ include_dirs = ~:*~a/include~%"
python-mypy
python-pytest
python-pytest-xdist
- python-setuptools-67 ;see:
<https://github.com/numpy/numpy/issues/27531>
+ python-setuptools
python-typing-extensions
- python-wheel-0.40
;; XXX: Avoid to: 'fenv_t' has not been declared in '::' 58 | using
::fenv_t;
;; See
<https://github.com/numpy/numpy/issues/21075#issuecomment-1047976197>,
;; <https://github.com/numpy/numpy/issues/24318>.