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 1n9lbb-0002Fr-4I for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 10:20:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n9lbZ-0002EW-3R for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Jan 2022 10:20:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9lbX-0002De-Nw for pgsql-hackers@lists.postgresql.org; Tue, 18 Jan 2022 10:20:44 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9lbR-00052g-Tx for pgsql-hackers@postgresql.org; Tue, 18 Jan 2022 10:20:43 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 1D0E03201FD3; Tue, 18 Jan 2022 05:20:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 18 Jan 2022 05:20:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=R5VP28uBRvME+47EcXvhBjdUT0t7MJQHSVrIazSDe Ww=; b=bc32UPav5poVuRaTh15FHUaUTi39ULqGfkW8OXzaCc0cqZkwgS2WLFwB0 JVLsPcb8BpaA2TglmpZXH/NkmNvzQENKILssHK32DYDK34QQnHxKVhrP8dNDe9o7 opx/RTUQBP5rdaXAan+yqRT5UoiyZu0vxzTbCYEPHZagOmWWhBg8vp2bWy/qCxD5 wCnqXvfmrbbTOTZaiwQpG/YcXngZF/Uqcov0lU+ydfuC2NKWE6d37yd0rG6gL6gD bKBKjWCPHEcve407V3xrPsahNkq2MYEwDJ4yVKnQdHhbZKW6+RUUfuiykQmlOcQ6 7QzWgsK1qpg5ENlIYZxf8wkRbXzPA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefgddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthejre dttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdr vghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrfgrth htvghrnhepvdeiteegffdvudejfffhgeffhfejvdduleduieehuedvleettdejffehieef teeunecuffhomhgrihhnpehphihthhhonhdrohhrghenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Jan 2022 05:20:32 -0500 (EST) Message-ID: Date: Tue, 18 Jan 2022 11:20:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Replace uses of deprecated Python module distutils.sysconfig Content-Language: en-US To: Tom Lane Cc: pgsql-hackers References: <0cd3579e-7790-aa05-0202-c6ce14d0af73@enterprisedb.com> <3777643.1639056683@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: <3777643.1639056683@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09.12.21 14:31, Tom Lane wrote: > Peter Eisentraut writes: >> On 02.12.21 08:20, Peter Eisentraut wrote: >>> Buildfarm impact: >>> gaur and prariedog use Python 2.6 and would need to be upgraded. > >> Tom, are you planning to update the Python version on these build farm >> members? I realize these are very slow machines and this might take >> some time; I'm just wondering if this had registered. > > I can do that when it becomes necessary. I've got one eye on the meson > conversion discussion, which will kill those two animals altogether; > so it seems possible that updating their Pythons now would just be > wasted effort depending on what lands first. I saw that the Python installations on gaur and prairiedog had been updated, so I committed this patch. As the buildfarm shows, various platforms have problems with this, in particular because they point to the wrong place for the include directory. AFAICT, in most cases this appears to have been fixed in more recent editions of those platforms (e.g., Debian unstable members pass but older releases don't), so at least the approach was apparently not wrong in principle. But obviously, this leaves us in a mess. I will revert this patch in a bit, after gathering a few more hours of data. Also, considering the failure on prairiedog, I do see now on that the sysconfig module is "New in version 3.2". I had interpreted the fact that it exists in version 2.7 that that includes all higher versions, but obviously there were multiple branches involved, so that was a mistaken assumption.