mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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 <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
08e6a0faba
commit
b76bf5dcd1
1 changed files with 13 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue