Re: [PATCH] Fix build when default python is python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 17, 2013 at 06:53:28PM +0100, Lénaïc Huard wrote:
> As the python generator scripts are written in python2,
> the ./configure script must check for python2 before checking for python
> otherwise, on platforms where both python2 and python3 are available and
> on which the default python points to python3, ./configure will try to use
> the wrong one.
> 
> Signed-off-by: Lénaïc Huard <lenaic@xxxxxxxxxxxxxxxx>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 10ce184..5446634 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -2032,7 +2032,7 @@ AM_CONDITIONAL([WITH_HYPERV], [test "$with_hyperv" = "yes"])
>  
>  
>  dnl Allow perl/python overrides
> -AC_PATH_PROG([PYTHON], [python])
> +AC_PATH_PROGS([PYTHON], [python2 python])
>  AC_PATH_PROG([PERL], [perl])
>  
>  AC_ARG_ENABLE([with-test-suite],

ACK, at some point we should make apibuild.py able to work with py3
too, but that's lower priority now the main python library is split
off in GIT.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]