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.
Unfortunately, the newly released Python 3.12 removed
distutils
after it being deprecated since since Python 3.10.distutils
module and gh-92584 for more details about its removal.With Python 3.12, the use of
distutils
in merger.py creates an error:We found that including the
setuptools
module, which now includesdistutils
to be a simple workaround for the issue.