Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #11974
| Path | csiph.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Matthias Klose <doko@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Python module packages that don't bytecompile on installation? |
| Date | Sat, 02 Nov 2019 11:10:01 +0100 |
| Message-ID | <yXYw1-57g-5@gated-at.bofh.it> (permalink) |
| References | <yXSgV-18y-1@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Sat Nov 2 10:04:25 2019 |
| Old-Return-Path | <doko@debian.org> |
| X-Amavis-Spam-Status | No, score=-6.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -3.5 |
| Old-X-Envelope-From | doko@debian.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Language | en-US |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/17539 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/6175e6d8-7bb0-fec9-58b1-ca2ac22b1b12@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 49 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Paul Wise <pabs@debian.org> |
| X-Original-Date | Sat, 2 Nov 2019 11:04:08 +0100 |
| X-Original-Message-ID | <6175e6d8-7bb0-fec9-58b1-ca2ac22b1b12@debian.org> |
| X-Original-References | <4b0d37a23b7e605d68d079b56c7d45a64f188a20.camel@debian.org> |
| Xref | csiph.com linux.debian.maint.python:11974 |
Show key headers only | View raw
On 02.11.19 04:22, Paul Wise wrote: > Hi all, > > I run adequate on my system, which means I notice when Python module > packages don't bytecompile when they are installed. So far I've just > been ignoring the warnings that adequate prints. > > https://salsa.debian.org/debian/adequate > > In addition I noticed: > > * some Python modules on my system weren't bytecompiled but did > bytecompile when I reinstalled them (blinker for example) > * many of the Python modules on my system don't bytecompile their test > directories (django for example) > * relatively few packages I have installed don't bytecompile when I > ignore test paths (lib2to3, tk, uno, distutils) > > Some questions: > > Should all module packages bytecompile? At this point I'd ignore any Python2 related package, and concentrate on Python3 stuff only. > Should all module packages bytecompile all their directories? > > What are the downsides when module packages don't bytecompile? > > What are the downsides when module packages do bytecompile? 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. > Do we need a lintian complaint about this issue? > > Do we need any improvements in how module packages bytecompile? > For example using triggers instead of postinst scriptlets. > > Any other thoughts? 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. Matthias
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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