Open DavidCain opened 1 year ago
This needs to be handled now, because Python 3.12 removed distutils
.
FYI: setuptools
vendored it, so you could probably get away with using setuptools.version
. But I would not pull in a runtime dependency for that.
This silences deprecations when running on Python 3.10 or newer:
The
LooseVersion
helper itself is very simple -- it splits on any.
characters, tries to coerce to integers, and then otherwise just compares ordering. We could easily reproduceLooseVersion
or choose to use another dependency likepackaging
, but there's an easy option available as well: just rely on the fact thatlibdmtx
only releases numeric releases, and that we only need to check for older releases.