]> arthur.barton.de Git - bup.git/blobdiff - dev/validate-python
Drop support for python 2
[bup.git] / dev / validate-python
index a64ecfefeb6b2bdafe09f2ecbd25cf863ca36995..eef0b32207da823b3e60cff072b19fe8b0be1e5e 100755 (executable)
@@ -11,9 +11,9 @@ majver=$("$python" -c 'import sys; print(sys.version_info[0])')
 minver=$("$python" -c 'import sys; print(sys.version_info[1])')
 
 # May not be correct yet, i.e. actual requirement may be higher.
-if test "$majver" -gt 2 -a "$minver" -lt 3; then
+if test "$majver" -lt 3 || test "$majver" -eq 3 && test "$minver" -lt 7; then
     # utime follow_symlinks >= 3.3
     bup_version_str=$("$python" --version 2>&1)
-    echo "ERROR: found $bup_version_str (must be >= 3.3 if >= 3)" 1>&2
+    echo "ERROR: found $bup_version_str (must be >= 3.7)" 1>&2
     exit 2
 fi