Hi, On 2018-11-27 14:14:24 +0100, Peter Eisentraut wrote: > On 25/11/2018 23:14, Tom Lane wrote: > > Andres Freund <and...@anarazel.de> writes: > >> On 2018-11-24 15:49:25 -0500, Tom Lane wrote: > >>> There's been some preliminary discussion about starting to default to > >>> python3, but given this project's inherent conservatism, I don't expect > >>> that to happen for some years yet. In any case, whenever we do pull > >>> that trigger we'd surely do so only in HEAD not released branches, so > >>> buildfarm owners will need to deal with the case for years more. > > > >> Why don't we probe for python2 in addition to python by default? That > >> ought to make RHEL 8 work, without making the switch just yet. > > > > I'm unexcited about that because that *would* be expressing a version > > preference --- and one that's on the wrong side of history. > > I think it would be appropriate to probe in the order > > python python3 python2 > > This would satisfy most scenarios that are valid under PEP 394.
ISTM we should first go for python, python2, python3 in all branches, and then have a separate master only commit that changes over the order to prefer python3 over 2. I don't think preferring 3 over 2 would be appropriate for past branches, but it'll surely become more common to run into distros without "python" installed. Greetings, Andres Freund