8000 Python 3.12 Compatibility · Issue #117 · backstage/mkdocs-monorepo-plugin · GitHub
[go: up one dir, main page]

Skip to content
Python 3.12 Compatibility #117
@santaimpersonator

Description

@santaimpersonator

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0