From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Jeremy Harris <jgh@wizmail.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Python versions (was Re: RHEL 8.0 build)
Date: Thu, 29 Nov 2018 10:34:06 -0500
Message-ID: <27383.1543505646@sss.pgh.pa.us> (raw)
In-Reply-To: <d5df4850-bb47-935d-2da9-d66b3d3ba0a5@2ndquadrant.com>
References: <da27307e-d451-9d16-7b4c-bee0c0f07dbc@wizmail.org>
<30378.1543092565@sss.pgh.pa.us>
<20181125215109.2gvd2qdkugvi74sv@alap3.anarazel.de>
<1457.1543184081@sss.pgh.pa.us>
<5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com>
<20181127173012.hgvrkqd7gncwyfmw@alap3.anarazel.de>
<044b778b-2086-1c3e-4ee0-fb688a7b0b80@2ndquadrant.com>
<16186.1543441296@sss.pgh.pa.us>
<d5df4850-bb47-935d-2da9-d66b3d3ba0a5@2ndquadrant.com>
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 28/11/2018 22:41, Tom Lane wrote:
>> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>>> My suggestion is to either
>>> - Change the probe order to python, python3 in master, or
>>> - Don't change anything until PEP 394 is updated.
>> It's hard to evaluate the latter unless we have some idea how soon
>> that update is likely to happen ... have you heard any little birdies
>> chattering about that lately?
> No, I haven't heard anything. I would be slightly surprised if anything
> changed there before PG12 is released.
Yeah, I think your option 2 is effectively the same as "do nothing".
After sleeping on it for awhile, I am liking the idea of probing
python, python3, python2 (while keeping the $PYTHON override of
course). This continues to work as before for any case that
worked before, ie when you either have "python" or used $PYTHON.
It also works for cases where you have only "python3" or only
"python2", which per this thread are becoming more common.
If you have both, then we're stuck with either making an
arbitrary choice or failing. Your proposal at the top is to
arbitrarily choose "python3", which I'm okay with. But if we're
touching this at all, I don't see a good excuse for failing
when the only thing we can find is "python2". The user's intent
seems pretty clear in that case.
Also, I think it'd be fine to back-patch such a change, again
on the grounds that it isn't breaking any case that worked before,
and people are likely to wish to use already-released branches
on platforms that stopped supplying "python".
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, andres@anarazel.de, jgh@wizmail.org
Subject: Re: Python versions (was Re: RHEL 8.0 build)
In-Reply-To: <27383.1543505646@sss.pgh.pa.us>
References: <da27307e-d451-9d16-7b4c-bee0c0f07dbc@wizmail.org> <30378.1543092565@sss.pgh.pa.us> <20181125215109.2gvd2qdkugvi74sv@alap3.anarazel.de> <1457.1543184081@sss.pgh.pa.us> <5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com> <20181127173012.hgvrkqd7gncwyfmw@alap3.anarazel.de> <044b778b-2086-1c3e-4ee0-fb688a7b0b80@2ndquadrant.com> <16186.1543441296@sss.pgh.pa.us> <d5df4850-bb47-935d-2da9-d66b3d3ba0a5@2ndquadrant.com> <27383.1543505646@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox