Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14865
| 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 | 2023-01-28 02:30 +0100 |
| Message-ID | <FSIcx-1CYn-5@gated-at.bofh.it> (permalink) |
| Organization | Debian |
Cross-posted to 2 groups.
[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