diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-04 13:23:17 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-05 16:52:35 +0000 |
commit | 1ff23a5d290de418655e7e67e522eacbda317115 (patch) | |
tree | 2655940d5153486c485402db2c53d51ad67ad364 /configure.ac | |
parent | 5156a1d5dca41f9e5197809e42569d527449ecbb (diff) | |
download | gobject-introspection-1ff23a5d290de418655e7e67e522eacbda317115.tar.gz |
Drop Python 2 support, require Python 3.4+
glib did the same thing this cycle, see
https://gitlab.gnome.org/GNOME/glib/merge_requests/196
for details
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 2df0e2de..31206f36 100644 --- a/configure.ac +++ b/configure.ac @@ -258,16 +258,13 @@ AC_CHECK_FUNCS([backtrace backtrace_symbols]) # we will fallback to reading $PYTHON if --with-python is not given, and # python.m4 will get the expected input AC_ARG_WITH(python, - AS_HELP_STRING([--with-python=PATH],[Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3" or "python2"]), + AS_HELP_STRING([--with-python=PATH],[Path to Python interpreter; searches $PATH if only a program name, such as "python3" or "python3.4", is given; if not given, searches for a few standard names]), [PYTHON="$withval"], []) if test x"$PYTHON" = xyes; then AC_MSG_ERROR([--with-python option requires a path or program argument]) fi -if test -n "$PYTHON" && ! which "$PYTHON"; then - AC_MSG_ERROR([Python interpreter $PYTHON does not exist]) -fi +AM_PATH_PYTHON(3.4,,[AC_MSG_ERROR([Requires Python >=3.4])]) -AM_PATH_PYTHON([2.7]) case "$host" in *-*-mingw*) # Change backslashes to forward slashes in pyexecdir to avoid |