Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14865
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Paul Wise <pabs@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#1029808: lintian: warnings related to *.pyc *.pyo __pycache__/ |
| Date | Sat, 28 Jan 2023 02:30:01 +0100 |
| Message-ID | <FSIcx-1CYn-5@gated-at.bofh.it> (permalink) |
| X-Original-To | Debian Bug Tracking System <submit@bugs.debian.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Sat Jan 28 01:24:18 2023 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -4 |
| Reply-To | Paul Wise <pabs@debian.org>, 1029808@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | debian-python@lists.debian.org, Debian Lintian Maintainers <lintian-maint@debian.org> |
| X-Debian-Pr-Message | report 1029808 |
| X-Debian-Pr-Package | lintian |
| X-Debian-Pr-Source | lintian |
| Organization | Debian |
| Content-Type | multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BVgKP84ylP9mD11Wjrpd" |
| MIME-Version | 1.0 |
| User-Agent | Evolution 3.46.3-1 |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1756628 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Sat, 28 Jan 2023 09:20:25 +0800 |
| X-Original-Message-ID | <54cd5a0a880f49d2c3c6a1daadcde2240c99dcba.camel@debian.org> |
| Xref | csiph.com linux.debian.bugs.dist:1135145 linux.debian.maint.python:14865 |
Cross-posted to 2 groups.
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Package: lintian Version: 2.116.1 Severity: wishlist X-Debbugs-CC: debian-python@lists.debian.org The *.pyc *.pyo files are Python bytecode and are almost always generated from Python source code. Since Python 3 these are usually stored in a __pycache__/ directory. Since these files are not source code, they should not be present in the Debian source packages, but there are hundreds of them in Debian: $ apt-file -I dsc search --regex '\.py[co]$' | wc -l 507 Please complain on *.pyc *.pyo being present in Debian source packages. Please also check that when they are present, that they have a *.py source file present. When it is in the same directory it will have the same name but .py extension. When the generated files are in a __pycache__/ directory then *.pyc file name will contain .cpython-NN but the *.py source file will not. Please also complain about other files in __pycache__/ directories. Since these dirs are caches and caches are often ignored by various tools, the other files could get lost from backups, VCS repos, etc. $ apt-file -I dsc search __pycache__/ | grep -vF .cpython- ack: /t/swamp/__pycache__/notes.pl asciidoc: /tests/__test_data__/plugin/backends/__pycache__/.gitkeep mypy-protobuf: /test/generated/testproto/__pycache__/__init__.py mypy-protobuf: /test/generated/testproto/dot/com/__pycache__/__init__.py -- bye, pabs https://wiki.debian.org/PaulWise
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Bug#1029808: lintian: warnings related to *.pyc *.pyo __pycache__/ Paul Wise <pabs@debian.org> - 2023-01-28 02:30 +0100
csiph-web