Re: Python versions (was Re: RHEL 8.0 build)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Python versions (was Re: RHEL 8.0 build)
Дата
Msg-id 5b0db65c-4865-4a63-67a2-f575f56a227c@2ndquadrant.com
обсуждение исходный текст
Ответ на Python versions (was Re: RHEL 8.0 build)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Python versions (was Re: RHEL 8.0 build)  (Andres Freund <andres@anarazel.de>)
Re: Python versions (was Re: RHEL 8.0 build)  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [RFC] Removing "magic" oids
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Remove Deprecated Exclusive Backup Mode