[Python-Dev] Python byte-compiled and optimized code

Antoine Pitrou solipsis at pitrou.net
Wed Oct 7 17:24:27 CEST 2009

Fred Drake <fdrake <at> gmail.com> writes:
> > 3) Is it possible to redirect the location of the generation of .pyc files
> > to other than that of the corresponding .py files?
> I think some support for this has been developed, at least
> experimentally, but I'm not sure if it's part of a stable release or
> not.  It's more likely in Python 3.x, which I'm significantly less
> familiar with.

I haven't seen any such thing.
If you need pyc files to reside in read-only directories, the best solution
would be to generate them at install time (when you have write access to the



More information about the Python-Dev mailing list