backstage/mkdocs-monorepo-plugin

Python 3.12 Compatibility

santaimpersonator opened this issue · 1 comments

Unfortunately, the newly released Python 3.12 removed distutils after it being deprecated since since Python 3.10.

With Python 3.12, the use of distutils in merger.py creates an error:

File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/mkdocs_monorepo_plugin/merger.py", line 16, in <module>
   from distutils.dir_util import copy_tree
ModuleNotFoundError: No module named 'distutils'

We found that including the setuptools module, which now includes distutils to be a simple workaround for the issue.

bih commented

This is fixed in #120. Closing.