Skip to content

Commit 1cbd16e

Browse files
tobluxJonathan Corbet
authored andcommitted
scripts: sphinx-pre-install: Add pyyaml hint to other distros
Extend commit 84b4cc8 ("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
1 parent 886f6ca commit 1cbd16e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/sphinx-pre-install

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ sub give_mageia_hints()
514514
{
515515
my %map = (
516516
"python-sphinx" => "python3-sphinx",
517+
"yaml" => "python3-yaml",
517518
"virtualenv" => "python3-virtualenv",
518519
"dot" => "graphviz",
519520
"convert" => "ImageMagick",
@@ -557,6 +558,7 @@ sub give_mageia_hints()
557558
sub give_arch_linux_hints()
558559
{
559560
my %map = (
561+
"yaml" => "python-yaml",
560562
"virtualenv" => "python-virtualenv",
561563
"dot" => "graphviz",
562564
"convert" => "imagemagick",
@@ -587,6 +589,7 @@ sub give_arch_linux_hints()
587589
sub give_gentoo_hints()
588590
{
589591
my %map = (
592+
"yaml" => "dev-python/pyyaml",
590593
"virtualenv" => "dev-python/virtualenv",
591594
"dot" => "media-gfx/graphviz",
592595
"convert" => "media-gfx/imagemagick",

0 commit comments

Comments
 (0)