Skip to content

Commit c47e015

Browse files
committed
plugins/sphinx-themes: Fix dependency for Python >=3.12
The sphinx-theme plugin uses `pkg_resources` to introspect Sphinx. In Python 3.12 `pkg_resources` is not available by default, because `setuptools` is not installed to a venv by default. So starting with 3.12 the plugin is broken. But `setuptools` still contains `pkg_resources`, so we can work around this issue for now by installing `setuptools` manually. Thus, this change adds this dependency for the `sphinx-themes` plugin. This has been tested with Python 3.12 and 3.13 with `setuptools` up to 75.6.0.
1 parent d51d5f2 commit c47e015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
'sphinx-themes': [
4444
'sphinx>=4.5.0,<7.3.0',
4545
'sphinx_rtd_theme>=1.0.0',
46+
'setuptools',
4647
],
4748
}
4849

0 commit comments

Comments
 (0)