Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmgYs-00041W-MN for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Nov 2021 18:18:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mmgYq-0001Nf-Us for pgsql-hackers@arkaria.postgresql.org; Mon, 15 Nov 2021 18:18:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmgYq-0001NU-LR for pgsql-hackers@lists.postgresql.org; Mon, 15 Nov 2021 18:18:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmgYk-0004kw-FJ for pgsql-hackers@postgresql.org; Mon, 15 Nov 2021 18:18:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AFIIMme2142325; Mon, 15 Nov 2021 13:18:22 -0500 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers@postgresql.org Subject: Re: Time to drop plpython2? In-reply-to: <20211115181246.gtnaeim6fo3vjb7c@alap3.anarazel.de> References: <20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de> <08a65981-7fec-1b9b-4061-6e3086c05914@enterprisedb.com> <3fc1211d-960b-4b2f-3e96-a6099db847fc@enterprisedb.com> <20211104195443.dystyijvufveikcp@alap3.anarazel.de> <85eb62cd-76f3-d01f-79ef-144173c16edc@enterprisedb.com> <2057149.1636943071@sss.pgh.pa.us> <20211115170632.buql3valv5mlnbni@alap3.anarazel.de> <2138217.1636996791@sss.pgh.pa.us> <20211115181246.gtnaeim6fo3vjb7c@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 15 Nov 2021 10:12:46 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2142323.1637000302.1@sss.pgh.pa.us> Date: Mon, 15 Nov 2021 13:18:22 -0500 Message-ID: <2142324.1637000302@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > On 2021-11-15 12:19:51 -0500, Tom Lane wrote: >> I was wondering about simply probing to see if python3 exists (and if >> so, what version it is exactly), as an additional configure test that >> doesn't hook into anything. That would give us some information without >> suddenly changing what is being tested. > But this is probably a good compromise. Were you thinking of doing a proper > autoconf test or just putting something like python3 --version || true in > configure? Hm, I had in mind an actual configure test; but since it's just a temporary exploratory measure, shortcuts are fine. However, I'm not sure that what you suggest would result in capturing anything in config.log. > I guess it'd be easiest to interpret if we output the current PYTHON version > and, iff < 3.0, also output the 'python3' version? We'll already know if PYTHON is set, at least so far as the buildfarm is concerned. regards, tom lane