From: Anton Farygin <rider@basealt.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Plan to switch default Python interpreter to Python 3
Date: Thu, 24 Oct 2019 20:50:41 +0300
Message-ID: <a5907c9b-b7b2-f870-d159-f656df3f0718@basealt.ru> (raw)
In-Reply-To: <20191024172510.GA308992@portlab>
Вот с этим надо что-то делать:
$ rpm -qR rpm-build|grep python
rpm-build-python >= 0.31
Плюс сейчас у нас по умолчанию всё что .py считается python-2.
и я не понял как план поможет избавиться от пакетов, завязанных на
python-2.7 ?
On 24.10.2019 20:25, Vladimir D. Seleznev wrote:
> Hi, devel@!
>
> В продолжении этой дискуссии [1].
>
> Осталось два с небольшим месяца до того, как наступит окончание
> поддержки второго Python, и в будущем под python всё больше проектов
> будут ассоциировать именно с третьим Python. Так как решение с bash
> хорошо себя зарекомендовало, и такое же решение предлагается для gnupg и
> gnupg2, то предлагаю следующий план действий:
>
> 1. Переименовать пакет python в python2.
> 2. В новый пакет python переместить симлинк /usr/bin/python -> python2
> из пакета python-base, сделать зависимость python на python2.
> 3. Запретить в шебангах неверсионированное имя интерпретатора python.
> 4. В будущем перелинковать /usr/bin/python -> python3 и поменять
> зависимость python с python2 на python3.
>
> С одном стороны, с соблюдением всех условий это не сломает обновлений
> системы, с другой стороны, даст время подготовиться к переходу Python на
> третий по-умолчанию.
>
> Есть ли возражения против такого плана?
>
> [1] https://lists.altlinux.org/pipermail/devel/2019-July/208133.html
>
next prev parent reply other threads:[~2019-10-24 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 17:25 Vladimir D. Seleznev
2019-10-24 17:50 ` Anton Farygin [this message]
2019-10-24 19:52 ` Sergey Y. Afonin
2019-10-29 14:57 ` Vladimir D. Seleznev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a5907c9b-b7b2-f870-d159-f656df3f0718@basealt.ru \
--to=rider@basealt.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git