Maybe it's time to remove support for dmtx version < 0.75 and remove the if statements.
distutils (and distutils.LooseVersion) are no longer available on Python 3.12:
from pylibdmtx import pylibdmtx
Traceback (most recent call last):
File "", line 1, in
File "....venv\Lib\site-packages\pylibdmtx\pylibdmtx.py", line 10, in
from .wrapper import (
File "....venv\Lib\site-packages\pylibdmtx\wrapper.py", line 8, in
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
Maybe it's time to remove support for dmtx version < 0.75 and remove the if statements.
distutils (and distutils.LooseVersion) are no longer available on Python 3.12: