guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit ba7e13bba5d159f22b5706bd17e50dca42ea3907
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Wed Sep 24 22:09:36 2025 +0200

    gnu: python-scipy: Reduce closure size.
    
    As documentation was not built at all, this change removes everything
    requiring for to reduce the closue size.
    
    * gnu/packages/python-science.scm (python-scipy): Adjust inputs
    [arguments] <phases>: Remove 'install-doc.
    [propagated-inputs]: Keep only python-numpy.
    [native-inpusts]: Remove python-hypothesis, and python-pytest-cov; add
    python-mpmath, python-numpydoc, python-pythran, python-rich-click,
    python-threadpoolctl, and python-typing-extensions.
    
    Fixes: guix/guix#2944.
    Change-Id: I97e4914c3d705b47b276d3f88dc938f26b0d27a5
    Co-authored-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-science.scm | 63 +++++++++--------------------------------
 1 file changed, 13 insertions(+), 50 deletions(-)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c9d75c202b..4c0f551289 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -3105,53 +3105,7 @@ cross-validation.")
                           (string-append
                            "import scipy; scipy.test('fast', parallel="
                            (number->string (parallel-job-count))
-                           ", verbose=2)"))))))
-          (add-after 'check 'install-doc
-            (lambda* (#:key outputs #:allow-other-keys)
-              ;; FIXME: Documentation cannot be built because it requires
-              ;; a newer version of pydata-sphinx-theme, which currently
-              ;; cannot build without internet access:
-              ;; <https://github.com/pydata/pydata-sphinx-theme/issues/628>.
-              ;; Keep the phase for easy testing.
-              (let ((sphinx-build (false-if-exception
-                                   (search-input-file input 
"bin/sphinx-build"))))
-                (if sphinx-build
-                    (let* ((doc (assoc-ref outputs "doc"))
-                           (data (string-append doc "/share"))
-                           (docdir (string-append
-                                    data "/doc/"
-                                    #$(package-name this-package) "-"
-                                    #$(package-version this-package)))
-                           (html (string-append docdir "/html")))
-                      (with-directory-excursion "doc"
-                        ;; Build doc.
-                        (invoke "make" "html"
-                                ;; Building the documentation takes a very 
long time.
-                                ;; Parallelize it.
-                                (string-append "SPHINXOPTS=-j"
-                                               (number->string 
(parallel-job-count))))
-                        ;; Install doc.
-                        (mkdir-p html)
-                        (copy-recursively "build/html" html)))
-                    (format #t "sphinx-build not found, skipping~%"))))))))
-    (propagated-inputs
-     (append
-       (if (supported-package? python-jupytext)  ; Depends on pandoc.
-           (list python-jupytext)
-           '())
-       (list python-matplotlib
-             python-mpmath
-             python-mypy
-             python-numpy
-             python-numpydoc
-             python-pydata-sphinx-theme
-             python-pydevtool
-             python-pythran
-             python-rich-click
-             python-sphinx
-             python-threadpoolctl
-             python-typing-extensions)))
-    (inputs (list openblas pybind11-2.10))
+                           ", verbose=2)")))))))))
     (native-inputs
      (list gfortran
            ;; XXX: Adding gfortran shadows GCC headers, causing a compilation
@@ -3162,14 +3116,23 @@ cross-validation.")
            python-click
            python-cython-0
            python-doit
-           python-hypothesis
+           python-mpmath
+           python-numpydoc
            python-pooch
            python-pycodestyle
            python-pydevtool
            python-pytest
-           python-pytest-cov
            python-pytest-timeout
-           python-pytest-xdist))
+           python-pytest-xdist
+           python-pythran
+           python-rich-click
+           python-threadpoolctl
+           python-typing-extensions))
+    (inputs
+     (list openblas
+           pybind11-2.10))
+    (propagated-inputs
+     (list python-numpy))
     (home-page "https://scipy.org/";)
     (synopsis "The Scipy library provides efficient numerical routines")
     (description "The SciPy library is one of the core packages that make up

Reply via email to