backstage / mkdocs-monorepo-plugin

✚ Build multiple documentation folders in a single Mkdocs. Designed for large codebases.
https://backstage.github.io/mkdocs-monorepo-plugin/
Apache License 2.0
313 stars 75 forks source link

Python 3.12 Compatibility #117

Closed santaimpersonator closed 6 months ago

santaimpersonator commented 7 months ago

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 6 months ago

This is fixed in #120. Closing.