aedi: use version module from packaging

distutils has been removed from python 3.12, so it's version module is no longer available in original python distribution
fix #61
This commit is contained in:
alexey.lysiuk 2023-11-04 13:07:36 +02:00
parent be7f36ac9a
commit a64068ac0d
2 changed files with 3 additions and 2 deletions

View file

@ -23,9 +23,9 @@ import shutil
import subprocess import subprocess
import typing import typing
import urllib.request import urllib.request
from distutils.version import StrictVersion
from pathlib import Path from pathlib import Path
from .packaging.version import Version as StrictVersion
from .utility import CommandLineOptions from .utility import CommandLineOptions

View file

@ -20,9 +20,10 @@ import collections.abc
import os import os
import shutil import shutil
import typing import typing
from distutils.version import StrictVersion
from pathlib import Path from pathlib import Path
from .packaging.version import Version as StrictVersion
# Minimum OS versions # Minimum OS versions
OS_VERSION_X86_64 = StrictVersion('10.13') OS_VERSION_X86_64 = StrictVersion('10.13')
OS_VERSION_ARM64 = StrictVersion('11.0') OS_VERSION_ARM64 = StrictVersion('11.0')