summaryrefslogtreecommitdiffstats
path: root/scripts/sphinx-pre-install
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-03-23 13:58:38 +0100
committerJonathan Corbet <corbet@lwn.net>2024-04-02 10:07:51 -0600
commit1cbd16e3c125f34bef481ea048ec59bf24f1cbf4 (patch)
treecb801271383bc902b9321edeba4cde0b5eddbe77 /scripts/sphinx-pre-install
parent886f6cac31cb2072ee79fe3009b7a89cea960ac7 (diff)
downloadlinux-1cbd16e3c125f34bef481ea048ec59bf24f1cbf4.tar.gz
linux-1cbd16e3c125f34bef481ea048ec59bf24f1cbf4.tar.bz2
linux-1cbd16e3c125f34bef481ea048ec59bf24f1cbf4.zip
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
Diffstat (limited to 'scripts/sphinx-pre-install')
-rwxr-xr-xscripts/sphinx-pre-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
index c559e43b2230..c1121f098542 100755
--- a/scripts/sphinx-pre-install
+++ b/scripts/sphinx-pre-install
@@ -514,6 +514,7 @@ sub give_mageia_hints()
{
my %map = (
"python-sphinx" => "python3-sphinx",
+ "yaml" => "python3-yaml",
"virtualenv" => "python3-virtualenv",
"dot" => "graphviz",
"convert" => "ImageMagick",
@@ -557,6 +558,7 @@ sub give_mageia_hints()
sub give_arch_linux_hints()
{
my %map = (
+ "yaml" => "python-yaml",
"virtualenv" => "python-virtualenv",
"dot" => "graphviz",
"convert" => "imagemagick",
@@ -587,6 +589,7 @@ sub give_arch_linux_hints()
sub give_gentoo_hints()
{
my %map = (
+ "yaml" => "dev-python/pyyaml",
"virtualenv" => "dev-python/virtualenv",
"dot" => "media-gfx/graphviz",
"convert" => "media-gfx/imagemagick",