Re: [PATCH] build: only support python3 binary

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

 



On Wed, Dec 04, 2019 at 09:59:48AM -0600, Eric Blake wrote:
> On 12/4/19 4:14 AM, Daniel P. Berrangé wrote:
> > python2 will be end of life by the time of the next
> > libvirt release. All our supported build targets, including
> > CentOS7, have a python3 build available.
> > 
> > Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
> > ---
> 
> > +++ b/configure.ac
> > @@ -701,9 +701,9 @@ if test "$with_linux" = "yes"; then
> >   fi
> >   dnl Allow perl/python overrides
> > -AC_PATH_PROGS([PYTHON], [python3 python2 python])
> > +AC_PATH_PROGS([PYTHON], [python3])
> 
> Are there any systems with python version 3 installed only as the name
> 'python', or does everyone with python 3 follow the PEP recommendations and
> have a 'python3' available?  (It matters on whether your list needs two
> instead of one spelling for acceptable programs to attempt).

There is talk about allowing a plain 'python' to refer to python 3 as a
convenience for humans. Anywhere which does that will still also provide
a 'python3' binary. So ignoring existance of 'python' seems like the safer
option for scripts.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
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]

  Powered by Linux