diff options
author | Rich Ercolani <[email protected]> | 2021-06-08 20:20:16 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-08 18:20:16 -0600 |
commit | 08cd0717359b1a18693e3c8e6d6e5a2819b35a48 (patch) | |
tree | 457539fe667ab977e5ff9e022c84a0aa1ef33996 /.github/workflows/zfs-tests-sanity.yml | |
parent | 1fcfc21cd8cce3d44b2526f262be5c73e4d8621a (diff) |
Correct a flaw in the Python 3 version checking
It turns out the ax_python_devel.m4 version check assumes that
("3.X+1.0" >= "3.X.0") is True in Python, which is not when X+1
is 10 or above and X is not. (Also presumably X+1=100 and ...)
So let's remake the check to behave consistently, using the
"packaging" or (if absent) the "distlib" modules.
(Also, update the Github workflows to use the new packages.)
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes: #12073
Diffstat (limited to '.github/workflows/zfs-tests-sanity.yml')
-rw-r--r-- | .github/workflows/zfs-tests-sanity.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/zfs-tests-sanity.yml b/.github/workflows/zfs-tests-sanity.yml index 9e2ed1b2f..40a7f8ba5 100644 --- a/.github/workflows/zfs-tests-sanity.yml +++ b/.github/workflows/zfs-tests-sanity.yml @@ -22,7 +22,8 @@ jobs: xfslibs-dev libattr1-dev libacl1-dev libudev-dev libdevmapper-dev \ libssl-dev libffi-dev libaio-dev libelf-dev libmount-dev \ libpam0g-dev pamtester python-dev python-setuptools python-cffi \ - python3 python3-dev python3-setuptools python3-cffi libcurl4-openssl-dev + python-packaging python3 python3-dev python3-setuptools python3-cffi \ + python3-packaging libcurl4-openssl-dev - name: Autogen.sh run: | sh autogen.sh |