[tor-commits] [tor/release-0.3.4] Prefer recent Python 3 in autoconf.
nickm at torproject.org
nickm at torproject.org
Tue Jun 26 13:26:05 UTC 2018
commit 47ee7978fe73816bf15cb392d0e89301f65724f8
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Jun 21 09:28:50 2018 -0400
Prefer recent Python 3 in autoconf.
Closes ticket 26372.
---
changes/feature26372_029 | 4 ++++
configure.ac | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/changes/feature26372_029 b/changes/feature26372_029
new file mode 100644
index 000000000..150ac3055
--- /dev/null
+++ b/changes/feature26372_029
@@ -0,0 +1,4 @@
+ o Minor features (compilation):
+
+ - When building Tor, prefer to use Python 3 over Python 2, and more
+ recent (contemplated) versions over older ones. Closes ticket 26372.
diff --git a/configure.ac b/configure.ac
index 15ecbe60e..279660d9b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -213,7 +213,11 @@ AM_PROG_CC_C_O
AC_PROG_CC_C99
AC_ARG_VAR([PYTHON], [path to Python binary])
-AC_CHECK_PROGS(PYTHON, [python python2 python2.7 python3 python3.3])
+AC_CHECK_PROGS(PYTHON, [ \
+ python3 \
+ python3.8 python3.7 python3.6 python3.5 python3.4 \
+ python \
+ python2 python2.7])
if test "x$PYTHON" = "x"; then
AC_MSG_WARN([Python unavailable; some tests will not be run.])
fi
More information about the tor-commits
mailing list