suppress pyc generation

Ivan Herman ivan at
Sun Dec 25 15:53:57 CET 2005

There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it


-------- Original Message --------
From: "Eddy Ilg" <eddy at>
Subject: suppress pyc generation
Date: 25/12/2005 14:01

> Hi,
> I would like to suppress .pyc generation or have the .pyc generation in a
> speical seperate root (I found something about PYCROOT). Has this been
> implemented yet? Is there an environment variable or a command line switch
> that suppresses .pyc generation?
> Eddy

More information about the Python-list mailing list