We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152d823 commit a0c2be9Copy full SHA for a0c2be9
sphinx_jinja2_compat/__init__.py
@@ -77,8 +77,11 @@
77
# or building from source or an eventual deliberate removal)
78
79
if sys.version_info >= (3, 12):
80
- # Ensure distutils is patched first
81
- __import__("_distutils_hack").add_shim()
+ # Ensure distutils is patched first, if setuptools is installed
+ try:
82
+ __import__("_distutils_hack").add_shim()
83
+ except ImportError:
84
+ pass
85
86
try:
87
# 3rd party
0 commit comments