Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12743

Re: The python command in Debian

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Ondrej Novy <novy@ondrej.org>
Newsgroups linux.debian.maint.python
Subject Re: The python command in Debian
Date Thu, 09 Jul 2020 21:50:01 +0200
Message-ID <AqKIp-78B-1@gated-at.bofh.it> (permalink)
References <AqEMF-3CH-3@gated-at.bofh.it>
X-Original-To Matthias Klose <doko@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Jul 9 19:48:13 2020
Old-Return-Path <ondrej.novy@gmail.com>
X-Amavis-Spam-Status No, score=-4.499 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=ondrej-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pkgqoocA94H21E7wanAbrRHMBMc4YmJk/Flzm1yGbW4=; b=N9eg7AvYDC8Vucor7d8w8zfat+qLcyJZp+7YnMXRVUS6FnQtc5X7vYPmD1JvtWjpOZ TfntCOeV1xlfEoeC9YLjDWvdKYz3jcEAIMrddaQe6C7BG3SwixkdhBPrYfYIoPLSNjPT PmR7yrvINmTot19n2aHrYJ02k4Hk3B3nDrjIg6xMZDNK24PeQWwUO9Bo6heVZv3UMQZu 8d7gHtm/gL2gpMyia3ycSsWLrrmJacdMGgR6bLddysH7VwZoL9ExsQ5f7VbaVv0T2PZ+ ZEcr+B1WRNFAkvn4F/FYdcRMwIZRuaz84NXJmWBvi/8ChcIB8At8czNn995jEdSb/rDS FfMw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pkgqoocA94H21E7wanAbrRHMBMc4YmJk/Flzm1yGbW4=; b=LXpG+xJuyn2jvYXQeQ8rGe3E3SdnU1JUlW9U8EPya+u0TyK+jw9Y34hgHllJlfIPKG ZPYu0JHv14gDV6owOcZTOpWU0DsJJ83lMrPifcu8pVF8CJfysSMEbkNEnK1UkJJkPti9 jp6jyEk+iX71mC9ByNriXJ0IkFexd2d1uK1c4HoyvAA3G15+CpLjh+g1XDXdUTwH0tnp /VGPNIZlnthyx0CJutX1sKyoRNOZoR1fUf8j252hi5IVd9O6U1QT4Qfpk/caDNnm93cn c4Vk6/FKx9wHl2BYzbGjEyrYTlkmQ1QTxHJqbhCo1VjqtUM05y87EeG8bpqgTvQNBR32 daTQ==
X-Gm-Message-State AOAM532QNFjw7OjNsDwBk1DrMH7kSzrKKpiVe8XJFrsupNbjf2nx3oEX s9byg52Px67FjSbfCeiHB2KRtGoEicVpLVErdwE=
X-Google-SMTP-Source ABdhPJz2CsZPqhqGa2ravF3MbabnIocnOhwCGvwSzQ95ZKrN/jyqVseH8r80UsaBWxDg3QjiQkcVBiwNx/Ik5xonc28=
X-Received by 2002:a1c:e90d:: with SMTP id q13mr1490740wmc.187.1594323080776; Thu, 09 Jul 2020 12:31:20 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/alternative; boundary="000000000000e30ef605aa074469"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18475
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CAOO6c=yOnDZ9bocSx_gx5w7m2A1mvwfCE7nJqUsPZsd5Fa94og@mail.gmail.com
Approved robomod@news.nic.it
Lines 103
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python <debian-python@lists.debian.org>
X-Original-Date Thu, 9 Jul 2020 21:31:09 +0200
X-Original-Message-ID <CAOO6c=yOnDZ9bocSx_gx5w7m2A1mvwfCE7nJqUsPZsd5Fa94og@mail.gmail.com>
X-Original-References <8658a8a4-82fb-030d-57d8-81c95ba5158e@debian.org>
Xref csiph.com linux.debian.maint.python:12743

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

čt 9. 7. 2020 v 15:27 odesílatel Matthias Klose <doko@debian.org> napsal:

> Describing here a solution which is implemented for Ubuntu focal (20.04
> LTS).  A
> new source package what-is-python (-perl-dont-hurt-me) ships binary
> packages
> python-is-python2, python-dev-is-python2, python-is-python3 and
> python-dev-is-python3.  The python-is-python2 package provides the python
> package, such that packages that still depend on python are not removed on
> a
> distro upgrade.  On new installs, python-is-python3 is not installed by
> default,
> but the user gets a hint from command-not-found to install the package if
> he
> tries to run python.  Package dependencies on the new four binary packages
> have
> to be disallowed in the Python policy.  Note that such a package including
> the
> Provides should only be uploaded once all dependencies on the unversioned
> python
> packages are gone.
>

I like this solution in Ubuntu and I have:
onovy@jupiter:~$ dpkg -l | grep python-is-python3
ii  python-is-python3                          3.8.2-4
          all          symlinks /usr/bin/python to python3

What I think is good idea:
* keep "python" command pointing to python2.7 if I'm upgrading
buster->bullseye with python2.7 installed. We are going to keep python2.7
interpreter for bullseye, so don't break old "python" command for
third-parties apps/scripts/etc. (install python-is-python2 during
buster->bullseye upgrade)
* allow users to choose if they want python=python3 (apt install
python-is-python3)
* (maybe?) python=python3 in new installs, because why not? (install
python-is-python3 by default in clean install)

-- 
Best regards
 Ondřej Nový

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

The python command in Debian Matthias Klose <doko@debian.org> - 2020-07-09 15:30 +0200
  Re: The python command in Debian Jeremy Stanley <fungi@yuggoth.org> - 2020-07-09 19:00 +0200
    Re: The python command in Debian paultag@debian.org - 2020-07-09 19:50 +0200
  Re: The python command in Debian Ondrej Novy <novy@ondrej.org> - 2020-07-09 21:50 +0200
    Re: The python command in Debian Fabrice BAUZAC-STEHLY <noon@mykolab.com> - 2020-07-13 18:30 +0200
      Re: The python command in Debian Matthias Klose <doko@debian.org> - 2020-07-13 19:30 +0200
        Re: The python command in Debian Ondrej Novy <novy@ondrej.org> - 2020-07-14 11:00 +0200
          Re: The python command in Debian Piotr Ożarowski <piotr@debian.org> - 2020-07-14 11:20 +0200
            Re: The python command in Debian Rene Engelhard <rene.engelhard@mailbox.org> - 2020-07-18 08:50 +0200
              Re: The python command in Debian Sebastian Humenda <shumenda@gmx.de> - 2020-07-18 10:30 +0200
                Re: The python command in Debian debacle@debian.org - 2020-07-18 10:40 +0200
                Re: The python command in Debian Dmitry Shachnev <mitya57@debian.org> - 2020-07-18 11:30 +0200
  Re: The python command in Debian Sandro Tosi <morph@debian.org> - 2020-07-16 18:10 +0200
  Re: The python command in Debian "Nicolas Dandrimont" <olasd@debian.org> - 2020-09-17 15:20 +0200
    Re: The python command in Debian Matthias Klose <doko@debian.org> - 2020-09-17 15:40 +0200
  Re: The python command in Debian Matthias Klose <doko@debian.org> - 2021-03-02 10:50 +0100

csiph-web