Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSOKW-0000gq-VC for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Nov 2018 15:34:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSOKV-0001L6-Lh for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Nov 2018 15:34:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSOKV-0001Kz-Eh for pgsql-hackers@lists.postgresql.org; Thu, 29 Nov 2018 15:34:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gSOKS-0008E9-R2 for pgsql-hackers@postgresql.org; Thu, 29 Nov 2018 15:34:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wATFY6FY027384; Thu, 29 Nov 2018 10:34:06 -0500 From: Tom Lane To: Peter Eisentraut cc: Andres Freund , Jeremy Harris , "pgsql-hackers@postgresql.org" Subject: Re: Python versions (was Re: RHEL 8.0 build) In-reply-to: References: <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> Comments: In-reply-to Peter Eisentraut message dated "Thu, 29 Nov 2018 14:32:21 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27382.1543505646.1@sss.pgh.pa.us> Date: Thu, 29 Nov 2018 10:34:06 -0500 Message-ID: <27383.1543505646@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Eisentraut writes: > On 28/11/2018 22:41, Tom Lane wrote: >> Peter Eisentraut 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