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


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

Re: Python module packages that don't bytecompile on installation?

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Paul Wise <pabs@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Python module packages that don't bytecompile on installation?
Date Sun, 03 Nov 2019 02:30:01 +0100
Message-ID <yYcSl-5mr-1@gated-at.bofh.it> (permalink)
References <yXSgV-18y-1@gated-at.bofh.it> <yXYw1-57g-5@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Nov 3 01:21:13 2019
Old-Return-Path <paul.is.wise@gmail.com>
X-Amavis-Spam-Status No, score=-6.75 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
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; bh=sYCNChcS7UBW46wvWAjv7sbbpg9uJlhiOTjAL5c+Cao=; b=nUOjIKfyvY5PYCedeZM9+pE1NVgz4hd1vUWMhtV+l/JvV24cGlu8lmtPF/OJrvkFhv 3olr6/Jklk8PvnJOBWz4uI4TGrL6OfV+KuygYyZERPbBreXJK6DZE/c9wg5kPVWlVGWH O3lXGL/C0I4PSkFAFBWGOcQ9crdi0OyzQo4uz0H3/+I3KaOmeZgi7obmJjQKMKaNrML0 8WRbziY5XnTz9k839wydamH2PqNDXWE/Tcw+pikUUMalX5u9MawbQxNcWhbOwZNjh+ba 3+X0Kl5XiRauQ2GrGUIQj+OPaOMcQbvPmDL16mB0WUNW5LfIwwyLY2UA05fSy01kYJZb pxgw==
X-Gm-Message-State APjAAAWc7eE7HlCKrBLMFbClhRrH1oJw1uf3mqXSV5Zoxdbe15hkNMkk ugpifjRL1NakMVSbcR2ZbbD3zChHiWHZW1uVjGeLEcTm
X-Google-SMTP-Source APXvYqxWk2wmB87Lge/t8Gq78kY0hF+xIE3K/94aodf0PpCSIShOSvn73drkoCz4TFKPbMilCjUqZ8jPACPI4z94Okc=
X-Received by 2002:adf:a48c:: with SMTP id g12mr16262130wrb.212.1572744058687; Sat, 02 Nov 2019 18:20:58 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17540
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/CAKTje6FALGctqpn6+M2FNE8NnRt+qLO_CFKAt8-UBVcf0p64gw@mail.gmail.com
Approved robomod@news.nic.it
Lines 32
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 3 Nov 2019 09:20:47 +0800
X-Original-Message-ID <CAKTje6FALGctqpn6+M2FNE8NnRt+qLO_CFKAt8-UBVcf0p64gw@mail.gmail.com>
X-Original-References <4b0d37a23b7e605d68d079b56c7d45a64f188a20.camel@debian.org> <6175e6d8-7bb0-fec9-58b1-ca2ac22b1b12@debian.org>
Xref csiph.com linux.debian.maint.python:11975

Show key headers only | View raw


On Sat, Nov 2, 2019 at 6:04 PM Matthias Klose wrote:

> At this point I'd ignore any Python2 related package, and concentrate on Python3
> stuff only.

Yes, I was referring only to python3-* module packages.

> Byte compilation is an optimization, speeding up a program start if
> byte-compiled files are ready.  Packages are smaller without bc, take a bit
> longer to install.  I think nobody is asking the question if .py files should be
> dropped in favor of .pyc files.

As I understand it, the .pyc files are interpreter version specific
and doing a transition for each major Python update was deemed to be
too much work, so instead we offload building the .pyc files onto
user's systems.

> I'd say, there are currently more pressing issues than that, like the Python2
> removal, or the introduction of Python 3.8.  3.8 also offers a central directory
> for bc files, so that's maybe another thing to look at, but not a priority now
> from my point of view.

Agreed re Python 2 etc. Eventually switching to using a central
directory in /var would be nice, right now the .pyc files are dumped
cruftily into /usr subdirs.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
https://bonedaddy.net/pabs3/

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


Thread

Python module packages that don't bytecompile on installation? Paul Wise <pabs@debian.org> - 2019-11-02 04:30 +0100
  Re: Python module packages that don't bytecompile on installation? Matthias Klose <doko@debian.org> - 2019-11-02 11:10 +0100
    Re: Python module packages that don't bytecompile on installation? Paul Wise <pabs@debian.org> - 2019-11-03 02:30 +0100
      Re: Python module packages that don't bytecompile on installation? Matthias Klose <doko@debian.org> - 2019-11-03 10:30 +0100
      Re: Python module packages that don't bytecompile on installation? Ansgar <ansgar@43-1.org> - 2019-11-04 09:10 +0100

csiph-web