mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
configure: Allow (and prefer) Python 3
Our build process no longer depends on Python 2, so we can finally allow Python 3 to satisfy our requirement for a Python interpreter. Since several distributions have now switched to installing Python 3 by default and Python 2 is on its way out, prefer the former when both are available. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
6c3b44ea6f
commit
c229e01a1f
@ -645,9 +645,9 @@ if test "$with_linux" = "yes"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Allow perl/python overrides
|
dnl Allow perl/python overrides
|
||||||
AC_PATH_PROGS([PYTHON], [python2 python])
|
AC_PATH_PROGS([PYTHON], [python3 python2 python])
|
||||||
if test -z "$PYTHON"; then
|
if test -z "$PYTHON"; then
|
||||||
AC_MSG_ERROR(['python' or 'python2' binary is required to build libvirt])
|
AC_MSG_ERROR(['python3', 'python2' or 'python' binary is required to build libvirt])
|
||||||
fi
|
fi
|
||||||
AC_PATH_PROG([PERL], [perl])
|
AC_PATH_PROG([PERL], [perl])
|
||||||
if test -z "$PERL"; then
|
if test -z "$PERL"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user