Disable vips7 SWIG bindings for python3

because they cause a compile error (see issue #334).
This commit is contained in:
Felix Bünemann 2016-05-18 02:06:43 +02:00
parent 6956bcf8a4
commit e24334beb2
1 changed files with 9 additions and 1 deletions

View File

@ -848,7 +848,15 @@ fi
if test x"$with_python" != x"no"; then
JD_PATH_PYTHON(2.7,,
[with_python=no
AC_MSG_WARN([Python not found; disabling vips7 Python binding])]
AC_MSG_WARN([Python >= 2.7 not found; disabling vips7 Python binding])]
)
fi
if test x"$with_python" != x"no"; then
# The SWIG bindings don't compile on python3 (see issue #334).
AM_PYTHON_CHECK_VERSION([$PYTHON], [3.0],
[with_python=no
AC_MSG_WARN([Python >= 3.0 found; disabling vips7 Python binding])]
)
fi