DeprecationWarning for output_scour.py: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

Line 6 in output_scour.py imports from distutils.version. PEP 632 states that "in Python 3.10 and 3.11, distutils will be formally marked as deprecated." The migration advice suggest for "distutils.version — use the packaging package".

#!/usr/bin/env python
"""
Run the scour module on the svg output.
"""

from distutils.version import StrictVersion

import inkex

try:
    import scour

StrictVersion from distutils.version is used for a version comparison in Line 59 in output_scour.py:

    def save(self, stream):
        # version check if enabled in options
        if self.options.scour_version_warn_old:
            scour_version = scour.__version__
            scour_version_min = self.options.scour_version
            if StrictVersion(scour_version) < StrictVersion(scour_version_min):
                raise inkex.AbortExtension(f"""
The extension 'Optimized SVG Output' is designed for Scour {scour_version_min} or later but you're
 using the older version Scour {scour_version}.

Note: You can permanently disable this message on the 'About' tab of the extension window.""")