gnu: python-numpy-documentation: Fix build.

* gnu/packages/python-xyz.scm (python-numpy-documentation):
  [arguments] <phases>: Do not delete 'build, extract all build steps
  from 'install; PDF build fails and excluded for now.
  [native-inputs]: Remove python-sphinx-panels; {texlive-local-tree}:
  add texlive-cmap.
  [description]: Remove mention of PDF.

Change-Id: I5f154ec681b127fd4c74667ec097a6409eacf099
This commit is contained in:
Sharlatan Hellseher 2025-07-11 10:56:10 +01:00
parent 84527ea254
commit aa52e30c41
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -10748,24 +10748,20 @@ numpysane has:
"texmf-dist/fonts/opentype/public/gnu-freefont"))
(setenv "GUIX_TEXMF" (string-append (getenv "GUIX_TEXMF") ":"
(getcwd) "/texmf-dist"))))
(delete 'build)
(replace 'install
(replace 'build
(lambda _
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/numpy"))
(html (string-append doc "/html"))
(info (string-append data "/info"))
(sphinxopts (string-append
(chdir "doc")
(let ((sphinxopts (string-append
"SPHINXOPTS=-j"
(number->string (parallel-job-count)))))
(with-directory-excursion "doc"
;; Do not treat warnings as errors.
(substitute* "Makefile"
((" -WT ") " -T "))
(setenv "HOME" "/tmp")
;; Build the PDF documentation.
(invoke "make" "latex-build" sphinxopts)
(invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
;; FIXME: PDF build fails
;; (invoke "make" "-C" "build/latex" "all-pdf" sphinxopts)
;; Build the HTML documentation
(invoke "make" "html" sphinxopts)
;; Build the Info documentation. The issues worked around
@ -10778,17 +10774,24 @@ numpysane has:
((".*'numpydoc'.*") "")
((".*'sphinx.ext.autodoc'.*") "")
((".*'sphinx.ext.autosummary'.*") ""))
(invoke "make" "info" sphinxopts)
(invoke "make" "info" sphinxopts))))
(replace 'install
(lambda _
(let* ((data (string-append #$output "/share"))
(doc (string-append data "/doc/numpy"))
(html (string-append doc "/html"))
(info (string-append data "/info")))
;; Install the HTML documentation.
(mkdir-p html)
(copy-recursively "build/html" html)
;; Install the PDF reference and user manuals.
(install-file "build/latex/numpy-ref.pdf" doc)
(install-file "build/latex/numpy-user.pdf" doc)
;; FIXME:
;; (install-file "build/latex/numpy-ref.pdf" doc)
;; (install-file "build/latex/numpy-user.pdf" doc)
;; Install the info manual.
(install-file "build/texinfo/numpy.info" info)
(symlink (string-append html "/_images")
(string-append info "/numpy-figures")))))))))
(string-append info "/numpy-figures"))))))))
(native-inputs
(list font-gnu-freefont
perl
@ -10802,11 +10805,11 @@ numpysane has:
python-scipy ;used by matplotlib
python-sphinx
python-sphinx-design
python-sphinx-panels
texinfo
(texlive-local-tree
(list texlive-cbfonts
texlive-cm-super
texlive-cmap
texlive-expdlist
texlive-fandol
texlive-greek-fontenc
@ -10818,7 +10821,7 @@ numpysane has:
(propagated-inputs '())
(synopsis "Documentation for the @code{python-numpy} package")
(description "This package provides the complete NumPy documentation in
the Texinfo, HTML, and PDF formats.")))
the Texinfo, and HTML formats.")))
(define-public python-numpy-stl
(package