Commit 031f204a authored by Nick Mathewson's avatar Nick Mathewson 🌉
Browse files

configure: reject Python 2.

Python 2 will be end-of-life as of 1 Jan 2020, so we can finally
stop supporting it.  As a first step, we should make our configure
script stop accepting python 2 as something acceptable to run our
tests with.

Closes ticket 32608.
parent 31f8b4fa
o New system requirements:
- When building Tor, you now need to have Python 3 in order to
run the integration tests. (Python 2 is officially unsupported
upstream, as of 1 Jan 2020.) Closes ticket 32608.
......@@ -352,15 +352,20 @@ AM_CONDITIONAL(BUILD_HTML_DOCS, [test "x$enable_html_manual" != "xno"])
AC_ARG_VAR([PYTHON], [path to Python binary])
AC_CACHE_CHECK([for Python 3], [tor_cv_PYTHON],
python3 \
python3.8 python3.7 python3.6 python3.5 python3.4 \
python \
python2 python2.7])
python ],
[["$ac_path_PYTHON" -c 'import sys; sys.exit(sys.version_info[0]<3)' && tor_cv_PYTHON="$ac_path_PYTHON" ac_path_PYTHON_found=:]] )])
if test "x$PYTHON" = "x"; then
AC_MSG_WARN([Python unavailable; some tests will not be run.])
AC_MSG_WARN([Python 3 unavailable; some tests will not be run.])
dnl List all external rust crates we depend on here. Include the version
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment