Rebuild Todo List Fix "bad mtime" pyc/pyo files for python packages

Aug. 27, 2014 - Felix Yan

The list of packages are currently having pyc/pyo files with "bad mtime" (e.g. some/all .pyc/pyo files are older than their corresponding .py files), which was often caused by doing modification after installation.

The most common case is sed'ing shebangs after calling python2 setup.py install. Please fix this by moving the needed modifications into prepare() phase.

The problem is that the interpreter will refuse to load the files, which increases load time for each affected file in the package, and renders the shipped pyc/pyo files useless.

A bit more background:

A bug report of python2 was opened: https://bugs.archlinux.org/task/37006

Many thanks to Kyle so we have the tool to generate the list [1]. An old list had been put on the topic of #archlinux-tu for more than 8 months.

I've generated the list again and am opening this TODO as that list is somewhat outdated as of now, and a TODO should help the progress further.

[1] http://pkgbuild.com/~kkeen/misc/

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
23 packages displayed out of 23 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
any Extra alacarte 1:3.54.0-1 1:3.54.0-2 heftig Complete bpiotrowski
x86_64 Extra aubio 0.4.9-21 dvzrv Complete schiv
x86_64 Extra avahi 1:0.8+r194+g3f79789-2 1:0.8+r194+g3f79789-3 heftig Complete bisson
any Extra deluge 1:2.1.1-6 1:2.1.1-7 heftig Complete heftig
any Extra gajim 1.9.5-2 anthraxx, Antiz Complete eric
any Extra getmail Complete andyrtr
x86_64 Extra gobject-introspection 1.82.0-1 1.82.0-2 heftig, fabiscafe Complete bpiotrowski
x86_64 Extra libkate 0.4.1-10 0.4.1-11 dvzrv Complete bpiotrowski
x86_64 Extra libsmbios 2.4.3-7 2.4.3-8 grawlinson Complete bpiotrowski
x86_64 Extra mercurial 6.9-1 6.9-2 alerque Complete bpiotrowski
any Extra mutagen Complete eric
x86_64 Extra nmap 7.95-1 anthraxx Complete bisson
any Extra papyon Complete bpiotrowski
x86_64 Extra pygtk Complete felixonmars
x86_64 Extra python2 Complete felixonmars
any Extra python2-django jelle Complete dan
x86_64 Extra python2-gobject heftig, fabiscafe Complete bpiotrowski
x86_64 Extra python2-gobject2 Complete heftig
any Extra python2-pip dvzrv Complete bpiotrowski
x86_64 Extra python2-pygame Foxboron Complete eric
x86_64 Extra python2-telepathy Complete bpiotrowski
any Extra python2-virtualenv grawlinson Complete bpiotrowski
any Extra translate-toolkit 3.13.3-2 jlichtblau Complete bpiotrowski