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


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

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

From Matthias Klose <doko@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Python module packages that don't bytecompile on installation?
Date 2019-11-03 10:30 +0100
Message-ID <yYkmR-1GX-5@gated-at.bofh.it> (permalink)
References <yXSgV-18y-1@gated-at.bofh.it> <yXYw1-57g-5@gated-at.bofh.it> <yYcSl-5mr-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 03.11.19 02:20, Paul Wise wrote:
> 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.

yes, that's another reason. Not having to touch binary indep packages during a 
transition.

>> 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.

yes, but that's something when 3.7 is removed.

Matthias

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