mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Switch from the deprecated distutils module to the packaging module
The distutils module was removed in Python 3.12.
This commit is contained in:
committed by
Philip Withnall
parent
9cd7cccdd3
commit
6ef967a0f9
@@ -19,7 +19,7 @@
|
||||
#
|
||||
# Author: David Zeuthen <davidz@redhat.com>
|
||||
|
||||
import distutils.version
|
||||
import packaging.version
|
||||
import os
|
||||
import sys
|
||||
|
||||
@@ -166,4 +166,4 @@ def version_cmp_key(key):
|
||||
v = str(key[0])
|
||||
else:
|
||||
v = "0"
|
||||
return (distutils.version.LooseVersion(v), key[1])
|
||||
return (packaging.version.Version(v), key[1])
|
||||
|
Reference in New Issue
Block a user