def compare_versions(aStr, bStr):

    # Compare using the version class
    return cmp(Version(aStr), Version(bStr))
Assumes Debian version format:
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/compare_versions