Closed akaszynski closed 2 years ago
or should we just use LooseVersion under the hood?
I’m in favor of using LooseVersion under the hood here rather than removing a feature
https://docs.python.org/3/library/distutils.html
distutils is deprecated with removal planned for Python 3.12. See the What’s New entry for more information.
Closing since we're avoiding the use of distutils.
Saw a snippet of code in
pyvista
today and figured it would be better to usedistutils
rather than reinventing the wheel:This probably captures other edge cases (like
LooseVersion('2.3.4.3.1')
) that we would have to write from scratch.@banesullivan, think it's ok to push a warning that we're going to remove the feature, or should we just use
LooseVersion
under the hood? Guess it sorta simplifies other people's code to usemeets_version
instead (if only just slightly).