diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-17 23:01:07 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:26 +0100 |
| commit | ff803a71bdd9e4420c25b8deb4aafd31b1d0cbe6 (patch) | |
| tree | 20a76f224dc9dc36103e30f26d92b60e467c37e5 /gnu | |
| parent | b43588b08c2bf84bfc58825c8ea233ed7190336e (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 324727cebb9..c88b5426b7e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -11070,11 +11070,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 @@ -11192,7 +11202,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) @@ -11210,9 +11225,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>. |
