When updating/downgrading/reinstalling a package, .pyc/.pyo files aren't regenerated because their mtime is newer than the mtime of the newly installed .py files. Reproducible: Always Steps to Reproduce: * Install some python package, mess up the .pyc files, reinstall again and find your .pyc files still broken. * After downgrading a python package, the .pyc files will also not be regenerated * Can happen with normal upgrades too, if your upgrade has been released before you installed the older version. Actual Results: .pyc files broken Expected Results: .pyc files regenerated when installing a package
Created attachment 186771 [details] This should demonstrate the bug quite clearly
Is this a dupe of bug #256953?
Bleh. Indeed, it's a dupe. *** This bug has been marked as a duplicate of bug 256953 ***