No longer rely on pkg_resources

Signed-off-by: Katharina Dröge <kate@commandmc.de>
This commit is contained in:
Katharina Dröge
2025-09-24 21:52:02 +02:00
parent bc8b96d956
commit adab25986f
6 changed files with 13 additions and 46 deletions

View File

@@ -27,6 +27,8 @@ import shutil
import time
from tempfile import NamedTemporaryFile
from packaging.version import Version
from whipper.common import accurip, checksum, common, mbngs, path
from whipper.program import cdrdao, cdparanoia
from whipper.result import result
@@ -99,9 +101,8 @@ class Program:
Also warn about buggy cdrdao versions.
"""
from pkg_resources import parse_version as V
version = cdrdao.version()
if V(version) < V('1.2.3rc2'):
if Version(version) < Version('1.2.3rc2'):
logger.warning('cdrdao older than 1.2.3 has a pre-gap length bug.'
' See http://sourceforge.net/tracker/?func=detail&aid=604751&group_id=2171&atid=102171') # noqa: E501