Skip to content

Commit

Permalink
Merge pull request #1 from labinnovationdocapost/packaging
Browse files Browse the repository at this point in the history
[CHG] distutils with packaging
  • Loading branch information
pcumani authored Oct 18, 2023
2 parents 12c82d6 + cce7a2f commit 059ff82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pylibdmtx/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
c_ulonglong, c_char_p, Structure, CFUNCTYPE, POINTER
)
from enum import IntEnum, unique
from distutils.version import LooseVersion
from packaging import version

from . import dmtx_library

Expand Down Expand Up @@ -196,7 +196,7 @@ class DmtxSymbolSize(IntEnum):


# Structs
if LooseVersion(dmtxVersion()) < LooseVersion('0.7.5'):
if version.parse(dmtxVersion()) < version.parse('0.7.5'):
class DmtxMessage(Structure):
_fields_ = [
('arraySize', c_size_t),
Expand Down Expand Up @@ -310,7 +310,7 @@ class DmtxScanGrid(Structure):
]


if LooseVersion(dmtxVersion()) < LooseVersion('0.7.5'):
if version.parse(dmtxVersion()) < version.parse('0.7.5'):
class DmtxDecode(Structure):
_fields_ = [
('edgeMin', c_int),
Expand Down Expand Up @@ -398,7 +398,7 @@ class DmtxRegion(Structure):
]


if LooseVersion(dmtxVersion()) < LooseVersion('0.7.5'):
if version.parse(dmtxVersion()) < version.parse('0.7.5'):
class DmtxEncode(Structure):
_fields_ = [
('method', c_int),
Expand Down

0 comments on commit 059ff82

Please sign in to comment.