Skip to content

Commit

Permalink
scripts: sphinx-pre-install: Add pyyaml hint to other distros
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
toblux authored and Jonathan Corbet committed Apr 2, 2024
1 parent 886f6ca commit 1cbd16e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sphinx-pre-install
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ sub give_mageia_hints()
{
my %map = (
"python-sphinx" => "python3-sphinx",
"yaml" => "python3-yaml",
"virtualenv" => "python3-virtualenv",
"dot" => "graphviz",
"convert" => "ImageMagick",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 1cbd16e

Please sign in to comment.