[Python-Dev] "Some" .pyc files not ending up in __pycache__ during installation

Antoine Pitrou solipsis at pitrou.net
Sat Feb 19 14:29:42 CET 2011


Le samedi 19 février 2011 à 14:27 +0100, "Martin v. Löwis" a écrit :
> Am 19.02.2011 14:14, schrieb Antoine Pitrou:
> > On Sat, 19 Feb 2011 23:07:17 +1000
> > Nick Coghlan <ncoghlan at gmail.com> wrote:
> >>
> >> While this is definitely untidy, it doesn't strike me as a release
> >> blocker. More of a "fix it in 3.2.1", since the status quo will
> >> *work*, it just means the precompiled file will be ignored on first
> >> execution with newer Python versions.
> > 
> > Are you sure? If the package gets installed in a root-writable-only
> > directory, later execution cannot create the right pyc files.
> 
> It will certainly work. It won't create pyc files, but it will still
> work - right?

Right, but that's a big performance regression if it doesn't use cached
bytecode file.

Regards

Antoine.




More information about the Python-Dev mailing list