]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Prefer recent Python 3 in autoconf.
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Jun 2018 13:28:50 +0000 (09:28 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Jun 2018 13:31:01 +0000 (09:31 -0400)
Closes ticket 26372.

changes/feature26372_029 [new file with mode: 0644]
configure.ac

diff --git a/changes/feature26372_029 b/changes/feature26372_029
new file mode 100644 (file)
index 0000000..150ac30
--- /dev/null
@@ -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.
index 15ecbe60e1bdad45328b55717a5b669e64a0e36f..279660d9b25f2c382faeef5fa033175d8d46b4be 100644 (file)
@@ -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