[LTP] [PATCH 1/1] doc/requirements.txt: Add setuptools

Petr Vorel pvorel@suse.cz
Thu Feb 12 09:03:23 CET 2026


Temporary workaround until upstream fix [1] is released.

It fixes error:
Extension error:
Could not import extension linuxdoc.rstKernelDoc (exception: No module named 'pkg_resources')

[1] https://github.com/return42/linuxdoc/commit/19f5e5cbe8fec100d9135cfb7d3f183fa9dc0642

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

it might take some time to get the new release, that's why this
workaround.
https://github.com/return42/linuxdoc/pull/42#issuecomment-3871470496

Fixes CI:
https://github.com/linux-test-project/ltp/actions/runs/21937826696/job/63355843895

Kind regards,
Petr

 doc/requirements.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/requirements.txt b/doc/requirements.txt
index ed9e31601d..7a6219e241 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -1,5 +1,9 @@
 # Use the same sphinx as on readthedocs.org. When updated, make sure
 # sphinx-rtd-theme is compatible with sphinx.
+
+# workaround for sphinx.errors.ExtensionError: Could not import extension linuxdoc.rstKernelDoc (exception: No module named 'pkg_resources')
+setuptools==68.0.0
+
 sphinx==7.2.6
 sphinx-rtd-theme==2.0.0
 
-- 
2.51.0



More information about the ltp mailing list