[Python-Dev] .pyc location?

Andreas Raab andreas.raab at gmx.de
Fri Nov 23 19:02:15 CET 2007


Nick Coghlan wrote:
> Issues with collocating the compiled files with the source files do 
> arise occasionally, but they can generally be resolved by having root 
> run compileall [1] over the affected directories. In cases where users 
> are able to modify source files (hence leading to the need to recompile 
> them after installation), those users are also typically able to write 
> the necessary .pyc files to the same directory.

Thanks, I'll try using compileall before digging deeper. If the file 
times are preserved correctly by the various installers this should do 
the trick.

Cheers,
  - Andreas


More information about the Python-Dev mailing list