mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
utils: Introduce abstraction over distutils comparison of versions
In future, if the semantics need to better align with Debian's version comparison, we can implement that easily. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
3d57feac24
commit
ebca76b236
1 file changed
+3
@@ -24,10 +24,13 @@ import os
|
||||
import random
|
||||
import re
|
||||
import string
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
import ruamel.yaml
|
||||
from django.utils.functional import lazy
|
||||
|
||||
Version = LooseVersion # Abstraction over distutils.version.LooseVersion
|
||||
|
||||
|
||||
def import_from_gi(library, version):
|
||||
"""Import and return a GObject introspection library."""
|
||||
|
||||
Reference in new issue
Block a user