From b39d6f618f3da5bcbdfbb32400bfc15614ab3575 Mon Sep 17 00:00:00 2001 From: Ivan Anfimov Date: Sat, 7 Jun 2025 22:13:45 +0000 Subject: [PATCH] Deprecation of distutils module The built-in distutils module was deprecated in 3.10 and was removed in Python 3.12 Co-authored-by: Takashi Kajinami Change-Id: Ibc2b329a261355aa96165f4af1acc377560e0a39 Signed-off-by: Ivan Anfimov --- openstack_dashboard/management/commands/extract_messages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/management/commands/extract_messages.py b/openstack_dashboard/management/commands/extract_messages.py index 13b7ad0e8c..29a70cb959 100644 --- a/openstack_dashboard/management/commands/extract_messages.py +++ b/openstack_dashboard/management/commands/extract_messages.py @@ -13,11 +13,12 @@ # limitations under the License. # pylint: disable=import-error,deprecated-module -from distutils.dist import Distribution import os from subprocess import call from django.core.management.base import BaseCommand +from setuptools.dist import Distribution + DOMAINS = ['django', 'djangojs'] MODULES = ['openstack_dashboard', 'horizon', 'openstack_auth']