No longer rely on pkg_resources
Signed-off-by: Katharina Dröge <kate@commandmc.de>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user