pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: 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: Tue, 27 Nov 2018 14:14:24 +0100
Message-ID: <5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com> (raw)
In-Reply-To: <1457.1543184081@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>

On 25/11/2018 23:14, Tom Lane wrote:
> Andres Freund <andres@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.

> Also, I noticed on a fresh FreeBSD 12.0 installation that what
> I've got is
> 
> $ ls /usr/bin/pyth*
> ls: /usr/bin/pyth*: No such file or directory
> $ ls /usr/local/bin/pyth*
> /usr/local/bin/python2.7
> /usr/local/bin/python2.7-config
> /usr/local/bin/python3.6
> /usr/local/bin/python3.6-config
> /usr/local/bin/python3.6m
> /usr/local/bin/python3.6m-config
> 
> So there are modern platforms on which "python2" isn't going to make
> it work automatically either.

I don't think this is a setup we need to support.  You are probably
suppose to install a meta package that will provide a "python" or
"python3" binary.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (19+ messages)  latest in thread

Message-ID: <5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com>
Permalink:  ../5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com/
Also on:    postgresql.org/message-id/5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com

 · 

reply

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: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, andres@anarazel.de, jgh@wizmail.org
  Subject: Re: Python versions (was Re: RHEL 8.0 build)
  In-Reply-To: <5b0db65c-4865-4a63-67a2-f575f56a227c@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>

* 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