https://github.com/agateblue/django-dynamic-preferences/blob/3017fde62ad1f65997b068d8b54db7e2a9fae122/tests/settings.py#L40 distutils was removed from Python 3.12.