Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scripts: sphinx-pre-install: Add pyyaml hint to other distros

Extend commit 84b4cc8189f2 ("docs: scripts: sphinx-pre-install: Fix
building docs with pyyaml package") and add pyyaml as an optional
package to Mageia, ArchLinux, and Gentoo.

The Python module pyyaml is required to build the docs, but it is only
listed in Documentation/sphinx/requirements.txt and is therefore missing
when Sphinx is installed as a package and not via pip/pypi.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240323125837.2022-2-thorsten.blum@toblux.com

authored by

Thorsten Blum and committed by
Jonathan Corbet
1cbd16e3 886f6cac

+3
+3
scripts/sphinx-pre-install
··· 514 514 { 515 515 my %map = ( 516 516 "python-sphinx" => "python3-sphinx", 517 + "yaml" => "python3-yaml", 517 518 "virtualenv" => "python3-virtualenv", 518 519 "dot" => "graphviz", 519 520 "convert" => "ImageMagick", ··· 558 557 sub give_arch_linux_hints() 559 558 { 560 559 my %map = ( 560 + "yaml" => "python-yaml", 561 561 "virtualenv" => "python-virtualenv", 562 562 "dot" => "graphviz", 563 563 "convert" => "imagemagick", ··· 589 587 sub give_gentoo_hints() 590 588 { 591 589 my %map = ( 590 + "yaml" => "dev-python/pyyaml", 592 591 "virtualenv" => "dev-python/virtualenv", 593 592 "dot" => "media-gfx/graphviz", 594 593 "convert" => "media-gfx/imagemagick",