diff options
author | Greg Hudson <ghudson@mit.edu> | 2018-02-19 21:10:09 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2018-07-12 11:41:25 -0400 |
commit | e23d24beacb73581bbf4351250f3955e6fd44361 (patch) | |
tree | b8b2f8ca36e82750c368b1901604ae4ab392031f /src/configure.in | |
parent | 146dadec8fe7ccc4149eb2e3f577cc320aee6efb (diff) | |
download | krb5-e23d24beacb73581bbf4351250f3955e6fd44361.zip krb5-e23d24beacb73581bbf4351250f3955e6fd44361.tar.gz krb5-e23d24beacb73581bbf4351250f3955e6fd44361.tar.bz2 |
Convert Python tests to Python 3
Look for python3 in configure.in and verify that we got it. Convert
test code to conform to Python 3.
ticket: 8710 (new)
Diffstat (limited to 'src/configure.in')
-rw-r--r-- | src/configure.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/configure.in b/src/configure.in index c493257..bafacf8 100644 --- a/src/configure.in +++ b/src/configure.in @@ -1100,15 +1100,13 @@ fi AC_SUBST(HAVE_RUNTEST) # For Python tests. -AC_CHECK_PROG(PYTHON,python2,python2) +AC_CHECK_PROG(PYTHON,python3,python3) if text x"$PYTHON" = x; then AC_CHECK_PROG(PYTHON,python,python) fi HAVE_PYTHON=no if test x"$PYTHON" != x; then - # k5test.py requires python 2.4 (for the subprocess module). - # Some code needs python 2.5 (for syntax like conditional expressions). - wantver="(sys.hexversion >= 0x2050000 and sys.hexversion < 0x3000000)" + wantver="(sys.hexversion >= 0x3000000)" if "$PYTHON" -c "import sys; sys.exit(not $wantver and 1 or 0)"; then HAVE_PYTHON=yes fi |