summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-08-12 17:52:28 +0200
committerJonathan Corbet <corbet@lwn.net>2025-08-13 10:19:16 -0600
commit94a161d998a103346088d97da6d1cfec4df97ddc (patch)
tree4eebad033405d1b669ac4fad4d610fd945866fc0
parent582b0f95c92e0a0ec79d23ed434786251bd4378b (diff)
scripts: sphinx-pre-install: Address issues with OpenSUSE Tumbleweed
On Tumbleweed, package names are named after python-313*, as it also has older python versions on it. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/fe0b5f7c18d7b32e0229c0890371e1441ffea294.1754992972.git.mchehab+huawei@kernel.org
-rwxr-xr-xscripts/sphinx-pre-install.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/sphinx-pre-install.py b/scripts/sphinx-pre-install.py
index b793796329c8..0e165ad05fdb 100755
--- a/scripts/sphinx-pre-install.py
+++ b/scripts/sphinx-pre-install.py
@@ -571,6 +571,14 @@ class SphinxDependencyChecker:
"virtualenv": "python311-virtualenv",
"yaml": "python311-PyYAML",
})
+ else:
+ # Tumbleweed defaults to Python 3.11
+
+ progs.update({
+ "python-sphinx": "python313-Sphinx",
+ "virtualenv": "python313-virtualenv",
+ "yaml": "python313-PyYAML",
+ })
# FIXME: add support for installing CJK fonts
#