
On Jun 23, 2005, at 10:11 PM, Greg Ewing wrote:
Skip Montanaro wrote:
I wrote PEP 304, "Controlling Generation of Bytecode Files":
I would like to see some way of having bytecode files put into platform/version dependent subdirectories, which would make it easier e.g. to have Python code shared over a network between machines of different architectures or running different Python versions. But the scheme this PEP proposes (a single session-wide location) is too coarse-grained for what I have in mind. So I would not support this particular PEP without sufficiently large changes that it might as well become a new PEP.
You could implement that in your sitecustomize.py, unless you have Python interpreters that change platform or version mid-session. I don't see why it needs to be subdirectories, you could make the bytecode cache local or somewhere on the server that you have write access to. -bob