]> granicus.if.org Git - graphviz/commitdiff
remove some useless Python 3 version testing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 19:25:56 +0000 (12:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 9 Jun 2021 01:26:02 +0000 (18:26 -0700)
Python 3’s major version is, by definition, 3. These tests were copied from
the unified Python support in 32466ecc452102a1fc84f4331c0ed099da4e7edc with
seemingly not much consideration of what their intent was. Related to #1992.

configure.ac

index 4ba6cdc913df711fff02c76fc2502c4f88027674..9118ddbcf1a78506b1e4043ed4f15eae024c2929 100644 (file)
@@ -1340,18 +1340,6 @@ else
         PYTHON3_VERSION=`$PYTHON3 -c "import sys; print('%d.%d' % sys.version_info[[0:2]])"`
         if test "x$PYTHON3_VERSION" = "x"; then
           PYTHON3=
-        else
-          PYTHON3_VERSION_MAJOR=`echo $PYTHON3_VERSION | cut -d '.' -f 1`
-          PYTHON3_VERSION_MINOR=`echo $PYTHON3_VERSION | cut -d '.' -f 2`
-          if test $PYTHON3_VERSION_MAJOR -lt 3; then
-            if test $PYTHON3_VERSION_MAJOR -lt 2; then
-             PYTHON3=
-            else
-              if test $PYTHON3_VERSION_MINOR -lt 3; then
-               PYTHON3=
-              fi
-            fi
-          fi
         fi
       fi
       if test "x$PYTHON3" = "x"; then