Skip to content
Commit 953a599c authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek Committed by Chris Lamb
Browse files

Replace distutils.LooseVersion by Version

Every import of distuils now raises a warning, and the module is
slated for removal.

The recommended replacement is packaging.version. It has Version and
LegacyVersion. LegacyVersion documents itself as "This class
implements the previous de facto sorting algorithm used by
setuptools". (Comparisons of packaging.LegacyVersion and
packaging.Version are intentionally borked, so packaging.LegacyVersion
should not be mixed with packaging.Version or packaging.parse(), which
can return packaging.Version.) But use of LegacyVersion also raises
a deprecation warning, with removal slated for the next release.

The runtime requirement on 'distutils' is dropped, since it is not
needed any more.
parent beebe3fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment